Split db crate into per-domain modules (SRP) #6
Loading…
Reference in a new issue
No description provided.
Delete branch "worktree-srp-refactor-db"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
feedsignal-db'sDbimpl had grown into one 250-line block mixing feed subscriptions, article storage/scoring, reading-event logging, and topic-affinity persistence.feeds.rs,articles.rs,reading_events.rs,affinities.rs, each animpl Dbblock for its own domain — mirroring the earlier web crate split intoapi/services/jobs/view(#4).lib.rsnow only holds theDbstruct, connection/pool setup, and module wiring.schemabecomespub(crate)so the new modules can reach the table definitions.Note: this branches off
main, independent of the not-yet-merged feed-polling PR (#5) — expect a small conflict infeeds.rs/lib.rswhen merging both, easy to resolve by relocatinglist_feeds/mark_feed_fetchedinto the newfeeds.rs.Test plan
cargo build --workspacecargo clippy --workspace --all-targets(clean)cargo fmt --checkcargo test --workspace🤖 Generated with Claude Code
https://claude.ai/code/session_01QmwX8eafbMstJvt8XPSqft