store: untangle the db substrate from its domain methods #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "split-db-untangle"
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?
Crate-split PR-2a (prep for the adaptor extraction). db/ conflated the pure Database/SQL substrate with domain impl SantiStore blocks. Moved the domain out so db/ is pure substrate: receipts' receipt_status → store/receipts.rs; SantiStore::migrate → substrate free fn migrate(conn), with open/seed_defaults → store/lifecycle.rs calling it. Rule: impl Database → substrate, impl SantiStore → domain; substrate never depends back on domain. Pure move; db/ now has zero impl SantiStore; 40 workspace test groups green; core debt 0; guard green under v0.6.0.
🤖 Generated with Claude Code
Crate-split PR-2a (prep for the adaptor extraction). db/ conflated the pure Database/SQL substrate with domain impl SantiStore blocks. Move the domain out so db/ is pure substrate, ready to lift: - receipts: impl SantiStore { receipt_status } (calls im, produces the ReceiptStatus projection) → store/receipts.rs; impl Database transitions + the receipt-state codec stay as substrate. - lifecycle: SantiStore::migrate becomes the substrate free fn migrate(conn) (schema migration is a persistence concern); open and seed_defaults → store/lifecycle.rs and call it. Rule: impl Database → substrate, impl SantiStore → domain; the substrate never depends back on domain. Pure move; 40 workspace test groups green; core debt 0. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>