Skip to main content

Module event_store

Module event_store 

Source
Expand description

EventStore trait and the in-process [InMemoryEventStore] implementation.

The engine defines only the trait. The production implementation is [SlateDbStore][crate::store_slatedb::SlateDbStore], enabled by the slatedb feature flag. [InMemoryEventStore] is included here for tests, spikes, and development without external dependencies.

Structs§

AppendResult
Metadata returned after a successful EventStore::append.

Enums§

ExpectedVersion
Optimistic concurrency control contract for EventStore::append.

Traits§

AtomicAppend
Extension of EventStore that atomically appends events and enqueues outbox messages in a single write operation.
EventStore
Append-only, ordered event stream storage contract.