[][src]Struct postgres_es::PostgresStore

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

Storage engine using an Postgres backing. This is the only persistent store currently provided.

Methods

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

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

Creates a new PostgresStore from the provided database connection.

Trait Implementations

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

Auto Trait Implementations

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

impl<A, E> Send for PostgresStore<A, E> where
    A: Send,
    E: Send

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

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

impl<A, E> !UnwindSafe for PostgresStore<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.