pub struct SqliteEventStore { /* private fields */ }Implementations§
Source§impl SqliteEventStore
impl SqliteEventStore
pub fn new(config: SqliteConfig) -> Result<Self, SqliteEventStoreError>
pub fn in_memory() -> Result<Self, SqliteEventStoreError>
pub async fn migrate(&self) -> Result<(), SqliteEventStoreError>
Trait Implementations§
Source§impl CheckpointStore for SqliteEventStore
impl CheckpointStore for SqliteEventStore
Source§impl Debug for SqliteEventStore
impl Debug for SqliteEventStore
Source§impl EventReader for SqliteEventStore
impl EventReader for SqliteEventStore
Source§type Error = EventStoreError
type Error = EventStoreError
Error type returned by read operations.
Source§async fn read_events<E: Event>(
&self,
filter: EventFilter,
page: EventPage,
) -> Result<Vec<(E, StreamPosition)>, Self::Error>
async fn read_events<E: Event>( &self, filter: EventFilter, page: EventPage, ) -> Result<Vec<(E, StreamPosition)>, Self::Error>
Read events matching filter criteria with pagination. Read more
Source§impl EventStore for SqliteEventStore
impl EventStore for SqliteEventStore
Source§async fn read_stream<E: Event>(
&self,
stream_id: StreamId,
) -> Result<EventStreamReader<E>, EventStoreError>
async fn read_stream<E: Event>( &self, stream_id: StreamId, ) -> Result<EventStreamReader<E>, EventStoreError>
Read all events from a stream. Read more
Source§async fn append_events(
&self,
writes: StreamWrites,
) -> Result<EventStreamSlice, EventStoreError>
async fn append_events( &self, writes: StreamWrites, ) -> Result<EventStreamSlice, EventStoreError>
Atomically append events to multiple streams with optimistic concurrency control. Read more
Source§impl ProjectorCoordinator for SqliteEventStore
impl ProjectorCoordinator for SqliteEventStore
Source§type Error = SqliteCoordinationError
type Error = SqliteCoordinationError
Error type returned when leadership acquisition fails. Read more
Source§type Guard = SqliteCoordinationGuard
type Guard = SqliteCoordinationGuard
Guard type that releases leadership when dropped. Read more
Auto Trait Implementations§
impl Freeze for SqliteEventStore
impl !RefUnwindSafe for SqliteEventStore
impl Send for SqliteEventStore
impl Sync for SqliteEventStore
impl Unpin for SqliteEventStore
impl UnsafeUnpin for SqliteEventStore
impl !UnwindSafe for SqliteEventStore
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