Skip to main content

rustbrain_core/storage/
mod.rs

1//! SQLite master store for rustbrain.
2//!
3//! [`Database`] owns a single connection with `foreign_keys=ON`, WAL (best-effort),
4//! and a busy timeout. Schema evolution is handled by [`SCHEMA_VERSION`] migrations
5//! in `schema_meta`.
6//!
7//! Application code should prefer [`crate::Brain`]; use `Database` directly when
8//! building custom indexers or offline maintenance tools.
9
10mod db;
11mod migrations;
12
13pub use db::Database;
14/// Current on-disk SQLite schema version supported by this build.
15pub use migrations::SCHEMA_VERSION;