Skip to main content

SyncStore

Trait SyncStore 

Source
pub trait SyncStore {
    type Tx<'a>: SyncStoreTx
       where Self: 'a;

    // Required method
    fn transaction<T>(
        &mut self,
        f: impl FnOnce(&mut Self::Tx<'_>) -> Result<T, SyncularError>,
    ) -> Result<T, SyncularError>;

    // Provided methods
    fn supports_sqlite_snapshot_artifacts(&self) -> bool { ... }
    fn decode_sqlite_snapshot_artifact_rows(
        &self,
        _table: &str,
        _artifact_bytes: &[u8],
    ) -> Result<Vec<Value>, SyncularError> { ... }
}

Required Associated Types§

Source

type Tx<'a>: SyncStoreTx where Self: 'a

Required Methods§

Source

fn transaction<T>( &mut self, f: impl FnOnce(&mut Self::Tx<'_>) -> Result<T, SyncularError>, ) -> Result<T, SyncularError>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§