[−][src]Struct postgres_es::PostgresStore
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]
A: Aggregate,
E: DomainEvent<A>,
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]
A: Aggregate,
E: DomainEvent<A>,
fn load(&self, aggregate_id: &str) -> Vec<MessageEnvelope<A, E>>
[src]
fn commit(
&self,
events: Vec<MessageEnvelope<A, E>>
) -> Result<(), AggregateError>
[src]
&self,
events: Vec<MessageEnvelope<A, E>>
) -> Result<(), AggregateError>
Auto Trait Implementations
impl<A, E> !RefUnwindSafe for PostgresStore<A, E>
impl<A, E> Send for PostgresStore<A, E> where
A: Send,
E: Send,
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,
A: Unpin,
E: Unpin,
impl<A, E> !UnwindSafe for PostgresStore<A, E>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,