pub struct MemVfsUtil(/* private fields */);Expand description
MemVfs management tool.
Implementations§
Source§impl MemVfsUtil
impl MemVfsUtil
Source§impl MemVfsUtil
impl MemVfsUtil
Sourcepub fn import_db(&self, filename: &str, bytes: &[u8]) -> Result<(), MemVfsError>
pub fn import_db(&self, filename: &str, bytes: &[u8]) -> Result<(), MemVfsError>
Import the database.
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 database is encrypted, use import_db_unchecked instead.
Sourcepub fn import_db_unchecked(
&self,
filename: &str,
bytes: &[u8],
page_size: usize,
) -> Result<(), MemVfsError>
pub fn import_db_unchecked( &self, filename: &str, bytes: &[u8], page_size: usize, ) -> Result<(), MemVfsError>
import_db without checking, can be used to import encrypted database.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemVfsUtil
impl !RefUnwindSafe 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