pub struct MemVfsUtil(/* private fields */);Expand description
In-memory VFS implementation. 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.