Skip to main content

Module storage

Module storage 

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

IncomingEdge
An edge pointing at a record, as seen from the target.
MemoryStore
In-memory reference store. Useful for tests, examples and tooling.
RecordQuery
Filter for listing records. Text search is an application concern.
SqliteStore
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.

Traits§

Store