Skip to main content

Crate anamnesis_store

Crate anamnesis_store 

Source
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§

api
Typed read/write API over the SQLite store.
cjk
CJK-aware FTS tokenization for Anamnesis.

Structs§

Store
Anamnesis storage handle. The underlying SQLite connection is wrapped in a parking_lot::Mutex so the type is Send + Sync and can be shared across async tasks (the MCP server holds an Arc<Store>). All methods take &self; the mutex enforces serialised access to the connection.

Enums§

StoreError
Store-layer errors.

Type Aliases§

Result
Crate result.