2026-04-23 17:46:11 -04:00
|
|
|
//! SQLite schema, on-disk open/recreate, and row-level repository helpers.
|
2026-04-21 23:00:47 -04:00
|
|
|
//!
|
2026-04-23 17:46:11 -04:00
|
|
|
//! Policy: a single [`open::open_or_recreate`] is the only entry point. Any
|
|
|
|
|
//! schema mismatch — wrong version, drifted tokenizer, absent `schema_info`
|
|
|
|
|
//! — wipes the DB and rebuilds from [`schema::SCHEMA_CURRENT`]. There are
|
|
|
|
|
//! no in-place migrations by design; re-indexing is accepted as the cost
|
|
|
|
|
//! of avoiding migration-path complexity.
|
2026-04-21 23:00:47 -04:00
|
|
|
|
2026-04-23 17:46:11 -04:00
|
|
|
pub mod open;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod repo;
|
|
|
|
|
pub mod schema;
|
|
|
|
|
|
2026-04-23 17:46:11 -04:00
|
|
|
pub use open::{open_or_recreate, CURRENT_SCHEMA_VERSION};
|