[−][src]Struct postgres_es::PostgresStore
Storage engine using an Postgres backing. This is the only persistent store currently provided.
Implementations
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, PostgresStoreAggregateContext<A>> for PostgresStore<A, E> where
A: Aggregate,
E: DomainEvent<A>, [src]
A: Aggregate,
E: DomainEvent<A>,
pub fn load(&self, aggregate_id: &str) -> Vec<EventEnvelope<A, E>>[src]
pub fn load_aggregate(
&self,
aggregate_id: &str
) -> PostgresStoreAggregateContext<A>[src]
&self,
aggregate_id: &str
) -> PostgresStoreAggregateContext<A>
pub fn commit(
&self,
events: Vec<E>,
context: PostgresStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A, E>>, AggregateError>[src]
&self,
events: Vec<E>,
context: PostgresStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A, E>>, AggregateError>
pub fn wrap_events(
&self,
aggregate_id: &str,
current_sequence: usize,
resultant_events: Vec<E, Global>,
base_metadata: HashMap<String, String, RandomState>
) -> Vec<EventEnvelope<A, E>, Global>[src]
&self,
aggregate_id: &str,
current_sequence: usize,
resultant_events: Vec<E, Global>,
base_metadata: HashMap<String, String, RandomState>
) -> Vec<EventEnvelope<A, E>, Global>
Auto Trait Implementations
impl<A, E> !RefUnwindSafe for PostgresStore<A, E>
impl<A, E> Send for PostgresStore<A, E>
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,
pub 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.
pub 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>,