pub struct SqliteDB { /* private fields */ }Expand description
SQLite DB that implements the forensic SqlDb trait
Implementations§
Source§impl SqliteDB
impl SqliteDB
pub fn new(conn: Connection) -> SqliteDB
Sourcepub fn virtual_file(file: Box<dyn VirtualFile>) -> ForensicResult<SqliteDB>
pub fn virtual_file(file: Box<dyn VirtualFile>) -> ForensicResult<SqliteDB>
Create a SQLite DB from a virtual file in ReadOnly and Serialized mode. The implementation copies the entire SQLite into a temp folder and opens it. The alternative is create a custom VFS for SQLite. https://www.sqlite.org/vfs.html
Trait Implementations§
Source§impl SqlDb for SqliteDB
impl SqlDb for SqliteDB
fn prepare<'a>( &'a self, statement: &'a str, ) -> ForensicResult<Box<dyn SqlStatement + 'a>>
Source§fn from_file(
&self,
file: Box<dyn VirtualFile>,
) -> ForensicResult<Box<dyn SqlDb>>
fn from_file( &self, file: Box<dyn VirtualFile>, ) -> ForensicResult<Box<dyn SqlDb>>
Mounts a SQL reader from a sqlite file
fn list_tables(&self) -> ForensicResult<Vec<String>>
Auto Trait Implementations§
impl Freeze for SqliteDB
impl !RefUnwindSafe for SqliteDB
impl Send for SqliteDB
impl !Sync for SqliteDB
impl Unpin for SqliteDB
impl UnsafeUnpin for SqliteDB
impl !UnwindSafe for SqliteDB
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