pub struct PostgresStore { /* private fields */ }Implementations§
Source§impl PostgresStore
impl PostgresStore
pub fn connect(connection_string: &str) -> Result<Self, Error>
pub fn bootstrap( options: PostgresBootstrapOptions, ) -> Result<Self, EventStoreError>
Trait Implementations§
Source§impl Drop for PostgresStore
impl Drop for PostgresStore
Source§impl EventStore for PostgresStore
impl EventStore for PostgresStore
fn query( &self, event_query: &EventQuery, ) -> Result<QueryResult, EventStoreError>
fn append( &self, new_events: Vec<NewEvent>, ) -> Result<AppendResult, EventStoreError>
fn append_if( &self, new_events: Vec<NewEvent>, context_query: &EventQuery, expected_context_version: Option<u64>, ) -> Result<AppendResult, EventStoreError>
fn stream_all( &self, handle: HandleStream, ) -> Result<EventStream, EventStoreError>
fn stream_to( &self, event_query: &EventQuery, handle: HandleStream, ) -> Result<EventStream, EventStoreError>
fn stream_all_durable( &self, durable_stream: &DurableStream, handle: HandleStream, ) -> Result<EventStream, EventStoreError>
fn stream_to_durable( &self, durable_stream: &DurableStream, event_query: &EventQuery, handle: HandleStream, ) -> Result<EventStream, EventStoreError>
Auto Trait Implementations§
impl !Freeze for PostgresStore
impl RefUnwindSafe for PostgresStore
impl Send for PostgresStore
impl Sync for PostgresStore
impl Unpin for PostgresStore
impl UnsafeUnpin for PostgresStore
impl UnwindSafe for PostgresStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more