Crate persist_es[][src]

Expand description

postgres-es

Common persistence logic used for database-backed event stores for cqrs-es.

Crates.io docs

Structs

Holds context for the pure event store implementation PostgresStore. This is only used internally within the EventStore.

A simple query and view repository. This is used both to act as a Query for processing events and to return materialized views.

Storage engine using a database backing. This is an event-sourced EventStore, meaning it uses events as the primary source of truth for the state of the aggregate.

Storage engine using a database backing. This is an snapshot-sourced EventStore, meaning it uses the serialized aggregate as the primary source of truth for the state of the aggregate.

A data structure maintaining context when updating views.

Holds context for the snapshot-sourced implementation PostgresSnapshotStore. This is only used internally within the EventStore.

Enums

Errors for implementations of a persistent event store.

Traits

Handles the database access needed for operation of a PersistedEventStore.

Handles the database access needed for operation of a PersistedSnapshotStore.

Handles the database access needed for a GenericQuery.