Expand description
Backend abstraction for the event store.
The EventStore trait keeps backends interchangeable: in-memory under simulation,
redb in production, and any future swap (custom WAL, segmented log) without touching
consumers. Backend-specific types (redb::Database, redb::Error) never appear in this
trait surface.
Re-exports§
pub use memory::MemoryBackend;pub use redb::RedbBackend;
Modules§
- memory
- In-memory
EventStorebackend used by writer and reader unit tests and by thecfg(madsim)simulation backend. - redb
- redb-backed
EventStoreimplementation.
Structs§
- Append
Entry - One entry plus its sidecar index keys, as accepted by
EventStore::append_batch. - Index
Key - A single sidecar index entry recorded atomically with an event store entry.
Enums§
- Index
Kind - The kind of secondary index the reader can look up.
- Scan
Direction - Direction for a sequence-keyed scan.
Traits§
- Event
Store - The single-node embedded event store.