pub struct MemVfsUtil(/* private fields */);
Expand description
MemVfs management tools exposed to clients.
Implementations§
Source§impl MemVfsUtil
impl MemVfsUtil
Sourcepub fn import_db(&self, path: &str, bytes: &[u8]) -> Result<(), MemVfsError>
pub fn import_db(&self, path: &str, bytes: &[u8]) -> Result<(), MemVfsError>
Import the db file
If the database is imported with WAL mode enabled, it will be forced to write back to legacy mode, see https://sqlite.org/forum/forumpost/67882c5b04
If the imported DB is encrypted, use import_db_unchecked
instead.
Sourcepub fn import_db_unchecked(
&self,
path: &str,
bytes: &[u8],
page_size: usize,
) -> Result<(), MemVfsError>
pub fn import_db_unchecked( &self, path: &str, bytes: &[u8], page_size: usize, ) -> Result<(), MemVfsError>
Can be used to import encrypted DB
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemVfsUtil
impl !RefUnwindSafe for MemVfsUtil
impl Send for MemVfsUtil
impl Sync for MemVfsUtil
impl Unpin for MemVfsUtil
impl !UnwindSafe for MemVfsUtil
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