pub struct SqliteObjsVfs;Expand description
Handle to the sqlite-objs VFS.
The VFS is registered globally and persists for the lifetime of the process. This is a zero-sized type that provides static methods for VFS registration.
Implementations§
Source§impl SqliteObjsVfs
impl SqliteObjsVfs
Sourcepub fn register(make_default: bool) -> Result<()>
pub fn register(make_default: bool) -> Result<()>
Register the sqlite-objs VFS using environment variables.
Reads configuration from:
AZURE_STORAGE_ACCOUNTAZURE_STORAGE_CONTAINERAZURE_STORAGE_SAS(checked first)AZURE_STORAGE_KEY(fallback)
§Arguments
make_default- If true, sqlite-objs becomes the default VFS for all connections
§Errors
Returns an error if registration fails (e.g., missing environment variables).
Sourcepub fn register_with_config(
config: &SqliteObjsConfig,
make_default: bool,
) -> Result<()>
pub fn register_with_config( config: &SqliteObjsConfig, make_default: bool, ) -> Result<()>
Sourcepub fn register_uri(make_default: bool) -> Result<()>
pub fn register_uri(make_default: bool) -> Result<()>
Register the sqlite-objs VFS in URI mode.
In this mode, Azure credentials must be provided via URI parameters for each database:
file:mydb.db?azure_account=acct&azure_container=cont&azure_sas=tokenSupported URI parameters:
azure_account(required)azure_containerazure_sasazure_keyazure_endpoint
§Arguments
make_default- If true, sqlite-objs becomes the default VFS for all connections
§Errors
Returns an error if registration fails.
Auto Trait Implementations§
impl Freeze for SqliteObjsVfs
impl RefUnwindSafe for SqliteObjsVfs
impl Send for SqliteObjsVfs
impl Sync for SqliteObjsVfs
impl Unpin for SqliteObjsVfs
impl UnsafeUnpin for SqliteObjsVfs
impl UnwindSafe for SqliteObjsVfs
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