pub struct SqliteBackend { /* private fields */ }Implementations§
Source§impl SqliteBackend
impl SqliteBackend
pub fn new(manager: SqliteConnectionManager) -> Self
pub fn get_agg_max_version( &self, tx: &Transaction<'_>, agg_id_str: &str, ) -> Result<u32, Error>
Sourcepub fn save_snapshot(&self, event: &Event) -> Result<(), Error>
pub fn save_snapshot(&self, event: &Event) -> Result<(), Error>
Save an snapshot to the eventstore. Will overwrite existing snapshots.
§Errors
This function will return an error if .
pub fn append_event(&self, event: &Event) -> Result<(), Error>
pub fn get_aggretate(&self, aggregate_id: Uuid) -> Result<Vec<Event>, Error>
pub fn get_snapshots(&self, aggregate_id: Uuid) -> Result<Vec<Event>, Error>
pub fn get_snapshot_by_version( &self, aggregate_id: Uuid, version: u32, ) -> Result<Event, Error>
pub fn get_aggretate_with_opts( &self, aggregate_id: Uuid, opts: &GetAggOpts, ) -> Result<Vec<Event>, Error>
Trait Implementations§
Source§impl Clone for SqliteBackend
impl Clone for SqliteBackend
Source§fn clone(&self) -> SqliteBackend
fn clone(&self) -> SqliteBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqliteBackend
impl !RefUnwindSafe for SqliteBackend
impl Send for SqliteBackend
impl Sync for SqliteBackend
impl Unpin for SqliteBackend
impl !UnwindSafe for SqliteBackend
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