pub struct SqliteSyncStore { /* private fields */ }Expand description
Shared owner of one bounded SQLite sync database.
Implementations§
Source§impl SqliteSyncStore
impl SqliteSyncStore
Sourcepub fn online_backup(
&self,
destination: impl AsRef<Path>,
) -> SqliteSyncResult<SqliteBackupReport>
pub fn online_backup( &self, destination: impl AsRef<Path>, ) -> SqliteSyncResult<SqliteBackupReport>
Creates an integrity-checked online backup and atomically publishes it.
Sourcepub fn restore_backup_to_new(
backup_path: impl AsRef<Path>,
destination: impl AsRef<Path>,
) -> SqliteSyncResult<SqliteBackupReport>
pub fn restore_backup_to_new( backup_path: impl AsRef<Path>, destination: impl AsRef<Path>, ) -> SqliteSyncResult<SqliteBackupReport>
Restores a verified backup into a new, previously absent database path.
Source§impl SqliteSyncStore
impl SqliteSyncStore
Sourcepub fn open(config: SqliteSyncConfig) -> SqliteSyncResult<Self>
pub fn open(config: SqliteSyncConfig) -> SqliteSyncResult<Self>
Opens, migrates and integrity-checks one provider database.
Sourcepub fn health(&self) -> SqliteSyncResult<SqliteSyncHealth>
pub fn health(&self) -> SqliteSyncResult<SqliteSyncHealth>
Runs an integrity check and reports bounded database usage.
Sourcepub fn config(&self) -> &SqliteSyncConfig
pub fn config(&self) -> &SqliteSyncConfig
Returns the provider’s redacted configuration bounds.
Sourcepub fn replication_log(&self) -> SqliteReplicationLog
pub fn replication_log(&self) -> SqliteReplicationLog
Creates a replication-log handle backed by this database.
Sourcepub fn checkpoint_store(&self) -> SqliteSyncCheckpointStore
pub fn checkpoint_store(&self) -> SqliteSyncCheckpointStore
Creates a checkpoint-store handle backed by this database.
Sourcepub fn outbox(&self) -> SqliteSyncOutbox
pub fn outbox(&self) -> SqliteSyncOutbox
Creates an outbox handle backed by this database.
Sourcepub fn tombstone_store(&self) -> SqliteSyncTombstoneStore
pub fn tombstone_store(&self) -> SqliteSyncTombstoneStore
Creates an opaque tombstone-store handle backed by this database.
Trait Implementations§
Source§impl Clone for SqliteSyncStore
impl Clone for SqliteSyncStore
Source§fn clone(&self) -> SqliteSyncStore
fn clone(&self) -> SqliteSyncStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqliteSyncStore
impl Debug for SqliteSyncStore
Source§impl StorageCapabilityProviderV1 for SqliteSyncStore
impl StorageCapabilityProviderV1 for SqliteSyncStore
Source§fn storage_capabilities_v1(
&self,
) -> Result<StorageCapabilityDescriptorV1, StorageCapabilityError>
fn storage_capabilities_v1( &self, ) -> Result<StorageCapabilityDescriptorV1, StorageCapabilityError>
Returns an immutable descriptor without probing or opening the provider.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteSyncStore
impl !UnwindSafe for SqliteSyncStore
impl Freeze for SqliteSyncStore
impl Send for SqliteSyncStore
impl Sync for SqliteSyncStore
impl Unpin for SqliteSyncStore
impl UnsafeUnpin for SqliteSyncStore
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