Rust AppView - highly experimental!

chore: refactor parakeet-db

Changed files
+10 -5
parakeet-appview
src
parakeet-consumer
src
parakeet-db
src
+2 -2
parakeet-appview/src/entity/implementations.rs
··· 8 8 9 9 use parakeet_db::domain::{Actor, Post}; 10 10 11 - use super::traits::{CachedEntity, ResolvableEntity, InvalidatableEntity}; 11 + use super::traits::{CachedEntity, InvalidatableEntity, ResolvableEntity}; 12 12 13 13 /// Profile entity for actor caching. 14 14 pub struct ProfileEntity; ··· 123 123 None 124 124 } 125 125 } 126 - } 126 + }
+2 -2
parakeet-consumer/src/lib.rs
··· 29 29 } 30 30 31 31 pub mod storage { 32 - pub mod postgres; 32 + // pub mod postgres; 33 33 34 - pub use postgres::PostgresBackend; 34 + // pub use postgres::PostgresBackend; 35 35 } 36 36 37 37 pub use core::actor_store::ActorIdStore;
+1 -1
parakeet-consumer/src/storage/postgres.rs
··· 2 2 use crate::records::{Follow, Like, Post, Profile, Repost}; 3 3 use async_trait::async_trait; 4 4 use deadpool_diesel::postgres::Pool; 5 - use parakeet_db::{utils::tid, types}; 5 + use parakeet_db::{types, utils::tid}; 6 6 use std::sync::Arc; 7 7 8 8 /// PostgreSQL storage backend implementation leveraging parakeet-db
+5
parakeet-db/src/lib.rs
··· 77 77 pub use actor_profile::ActorProfile; 78 78 pub use post_thread::PostThread; 79 79 } 80 + 81 + // Convenience re-exports for commonly used domain types 82 + pub use entities::{Actor, FeedGen, Label, List, ListItem, Notification, Post, StarterPack, StarterPackFeed, Verification}; 83 + pub use value_objects::{Repost, PostStats, ProfileStats, Threadgate, Uri}; 84 + pub use aggregates::{ActorProfile, PostThread}; 80 85 } 81 86 82 87 // === Infrastructure Layer ===