Expand description
Storage interface and reference implementations.
Stores persist events and the projected snapshot of each record. They are
deliberately dumb: validation, authorization and projection happen in the
crate::repository::Repository. A store’s only semantic duties are
atomicity, optimistic concurrency (gap-free sequences), idempotency-key
uniqueness, and scrubbing history when a redaction is committed.
Structs§
- Incoming
Edge - An edge pointing at a record, as seen from the target.
- Memory
Store - In-memory reference store. Useful for tests, examples and tooling.
- Record
Query - Filter for listing records. Text search is an application concern.
- Sqlite
Store - Relational reference store (SQLite). Events and snapshots are stored as canonical JSON next to a few indexed columns used for lookups. The schema is internal to this store; applications must not depend on it.