Crate postgres_es

Source
Expand description

§postgres-es

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

Structs§

PostgresEventRepository
An event repository relying on a Postgres database for persistence.
PostgresViewRepository
A postgres backed query repository for use in backing a GenericQuery.

Functions§

default_postgress_pool
A convenience method for building a simple connection pool for PostgresDb. A connection pool is needed for both the event and view repositories.
postgres_aggregate_cqrs
A convenience function for creating a CqrsFramework using an aggregate store.
postgres_cqrs
A convenience function for creating a CqrsFramework from a database connection pool and queries.
postgres_snapshot_cqrs
A convenience function for creating a CqrsFramework using a snapshot store.

Type Aliases§

PostgresCqrs
A convenience type for a CqrsFramework backed by PostgresStore.