Expand description
SQLite-backed storage for Anamnesis records.
The crate exposes Store::open / Store::open_in_memory plus a typed
API in api for records, chunks, embeddings, jobs, and sources. The
raw Connection is intentionally kept private to callers outside this
crate; only tests use conn() directly.
Re-exports§
pub use api::ChunkHit;pub use api::ChunkLookup;pub use api::LineageChain;pub use api::PendingEmbeddingJob;pub use api::RecordSummary;pub use api::SearchFilter;pub use api::SourceRow;pub use api::SourceWithCounts;pub use api::StoreStats;pub use api::MAX_LIST_LIMIT;
Modules§
Structs§
- Store
- Anamnesis storage handle. The underlying SQLite connection is wrapped
in a
parking_lot::Mutexso the type isSend + Syncand can be shared across async tasks (the MCP server holds anArc<Store>). All methods take&self; the mutex enforces serialised access to the connection.
Enums§
- Store
Error - Store-layer errors.
Type Aliases§
- Result
- Crate result.