pub struct SQLiteKeyValueStorage { /* private fields */ }Expand description
Shared SQLite KeyValue storage handle with catalog and backend factories.
Implementations§
Source§impl SQLiteKeyValueStorage
impl SQLiteKeyValueStorage
pub fn open(path: &Path) -> SQLiteResult<Self>
pub fn open_in_memory() -> SQLiteResult<Self>
pub fn from_connection(conn: ManagedConnection) -> SQLiteResult<Self>
pub fn store(&self) -> Arc<SQLiteKeyValueStore> ⓘ
pub fn catalog(&self) -> SQLiteKeyValueCatalog
pub fn backend(&self) -> SQLiteKeyValueStorageBackend
Trait Implementations§
Source§impl Clone for SQLiteKeyValueStorage
impl Clone for SQLiteKeyValueStorage
Source§fn clone(&self) -> SQLiteKeyValueStorage
fn clone(&self) -> SQLiteKeyValueStorage
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 PersistentStorageProvider for SQLiteKeyValueStorage
impl PersistentStorageProvider for SQLiteKeyValueStorage
fn open_session(&self) -> StorageBackendResult<PersistentStorageSession>
Source§fn storage_identity(
&self,
) -> StorageBackendResult<Option<PersistentStorageIdentity>>
fn storage_identity( &self, ) -> StorageBackendResult<Option<PersistentStorageIdentity>>
Return the database identity shared by every session this provider opens. Custom providers that cannot expose a stable identity may keep the default; engines built from the same
Arc provider still share an in-process coordinator.Source§fn open_initial_session(
&self,
) -> Result<PersistentStorageSession, StorageBackendError>
fn open_initial_session( &self, ) -> Result<PersistentStorageSession, StorageBackendError>
Open handles for initial Engine restoration. Providers may defer catalog schema preparation until
CatalogFacade::initialize_storage runs inside the owning transaction; ordinary session factories must return an initialized catalog.Source§fn auxiliary_encryption_key(&self) -> Option<StorageEncryptionKey>
fn auxiliary_encryption_key(&self) -> Option<StorageEncryptionKey>
Protect engine-owned auxiliary files with the database’s encryption
credential. Encrypted file providers must forward this capability;
None declares that their auxiliary storage may be unencrypted.Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteKeyValueStorage
impl !UnwindSafe for SQLiteKeyValueStorage
impl Freeze for SQLiteKeyValueStorage
impl Send for SQLiteKeyValueStorage
impl Sync for SQLiteKeyValueStorage
impl Unpin for SQLiteKeyValueStorage
impl UnsafeUnpin for SQLiteKeyValueStorage
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