Crate postgres_es[][src]

Expand description

postgres-es

A Postgres implementation of the EventStore trait in cqrs-es.

Build tag Crates.io docs

Installation

[dependencies]
postgres-es = "0.2.0"
cqrs-es = "0.2.0"

Structs

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 Postgres 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.

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

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

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

Functions

A convenience building a simple connection pool for PostgresDb.

A convenience function for creating a CqrsFramework from a database connection pool and queries.

A convenience function for creating a CqrsFramework using a snapshot store.

Type Definitions

A convenience type for a CqrsFramework backed by PostgresStore.

A convenience type for a CqrsFramework backed by PostgresSnapshotStore.