Skip to main content

orbok_db/
lib.rs

1//! # orbok-db
2//!
3//! The authoritative orbok SQLite catalog (RFC-002): connection
4//! management, append-only migrations, and the repository layer.
5//!
6//! Design rules implemented here:
7//! - the catalog is authoritative; localcache payloads are elsewhere
8//!   (Appendix A §3, separate `orbok-cache.sqlite3`);
9//! - SQL stays inside repositories — application code sees typed records
10//!   (RFC-002 §8);
11//! - cleanup is executed only from a validated [`orbok_core::CleanupPlan`]
12//!   (RFC-001 §14).
13
14pub mod catalog;
15pub mod migrations;
16pub mod repo;
17
18#[cfg(test)]
19mod tests;
20
21pub use catalog::{CACHE_FILE_NAME, CATALOG_FILE_NAME, Catalog};