Struct postgres_es::PostgresEventRepository[][src]

pub struct PostgresEventRepository { /* fields omitted */ }
Expand description

A snapshot backed event repository for use in backing a PersistedSnapshotStore.

Implementations

Creates a new PostgresEventRepository from the provided database connection used for backing a PersistedSnapshotStore.

let store = PostgresEventRepository::<MyAggregate>::new(pool);

Trait Implementations

Returns all events for a single aggregate instance.

Returns the last events for a single aggregate instance.

Returns the current snapshot for an aggregate instance.

Commits the updated aggregate and accompanying events.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.