[][src]Struct postgres_es::PostgresSnapshotStore

pub struct PostgresSnapshotStore<A, E> where
    A: Aggregate,
    E: DomainEvent<A>, 
{ /* fields omitted */ }

Storage engine using an Postgres backing and relying on a serialization of the aggregate rather than individual events. This is similar to the "snapshot strategy" seen in many CQRS frameworks.

Implementations

impl<A, E> PostgresSnapshotStore<A, E> where
    A: Aggregate,
    E: DomainEvent<A>, 
[src]

pub fn new(conn: Connection) -> Self[src]

Creates a new PostgresSnapshotStore from the provided database connection.

Trait Implementations

impl<A, E> EventStore<A, E, PostgresSnapshotStoreAggregateContext<A>> for PostgresSnapshotStore<A, E> where
    A: Aggregate,
    E: DomainEvent<A>, 
[src]

Auto Trait Implementations

impl<A, E> !RefUnwindSafe for PostgresSnapshotStore<A, E>

impl<A, E> Send for PostgresSnapshotStore<A, E>

impl<A, E> !Sync for PostgresSnapshotStore<A, E>

impl<A, E> Unpin for PostgresSnapshotStore<A, E> where
    A: Unpin,
    E: Unpin

impl<A, E> !UnwindSafe for PostgresSnapshotStore<A, E>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.