rlm_rs/storage/mod.rs
1//! Storage layer for RLM-RS.
2//!
3//! Provides persistent storage for RLM state using `SQLite`. The storage
4//! layer handles contexts, buffers, chunks, and metadata with proper
5//! transaction support.
6
7pub mod schema;
8pub mod sqlite;
9pub mod traits;
10
11pub use schema::{CURRENT_SCHEMA_VERSION, SCHEMA_SQL};
12pub use sqlite::{EmbeddingStats, SqliteStorage};
13pub use traits::Storage;
14
15/// Default database file name.
16pub const DEFAULT_DB_NAME: &str = "rlm-state.db";
17
18/// Default database path relative to project root.
19pub const DEFAULT_DB_PATH: &str = ".rlm/rlm-state.db";