Struct eventstore::backend::sqlite::SqliteBackend
source · 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 .