pub struct SQLiteStorageProvider { /* private fields */ }Expand description
Database-level owner that creates isolated SQLite engine sessions.
Implementations§
Source§impl SQLiteStorageProvider
impl SQLiteStorageProvider
pub fn new(connection: ManagedConnection) -> Self
Trait Implementations§
Source§impl Clone for SQLiteStorageProvider
impl Clone for SQLiteStorageProvider
Source§impl PersistentStorageProvider for SQLiteStorageProvider
impl PersistentStorageProvider for SQLiteStorageProvider
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.Source§fn open_initial_session(&self) -> StorageBackendResult<PersistentStorageSession>
fn open_initial_session(&self) -> StorageBackendResult<PersistentStorageSession>
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.fn open_session(&self) -> StorageBackendResult<PersistentStorageSession>
Source§fn open_session_with_cancellation(
&self,
cancellation: &CancellationToken,
) -> StorageBackendResult<PersistentStorageSession>
fn open_session_with_cancellation( &self, cancellation: &CancellationToken, ) -> StorageBackendResult<PersistentStorageSession>
Open an autonomous session whose writes can be cancelled by the caller. Versioned factories and wrappers must preserve their catalog/backend pair and forward this construction capability.
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.Auto Trait Implementations§
impl !RefUnwindSafe for SQLiteStorageProvider
impl !UnwindSafe for SQLiteStorageProvider
impl Freeze for SQLiteStorageProvider
impl Send for SQLiteStorageProvider
impl Sync for SQLiteStorageProvider
impl Unpin for SQLiteStorageProvider
impl UnsafeUnpin for SQLiteStorageProvider
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