pub struct SqliteStore { /* private fields */ }Implementations§
Source§impl SqliteStore
impl SqliteStore
pub fn new<P: AsRef<Path>>(db_path: P) -> Result<Self>
pub fn add_directory(&self, path: &str) -> Result<i64>
pub fn update_directory_status(&self, path: &str, status: &str) -> Result<()>
pub fn get_directories(&self) -> Result<Vec<DirectoryRecord>>
pub fn add_file(&self, record: &FileRecord) -> Result<i64>
pub fn get_file_by_path(&self, path: &str) -> Result<Option<FileRecord>>
pub fn delete_file(&self, path: &str) -> Result<()>
pub fn clear_all_files(&self) -> Result<()>
pub fn get_stats(&self) -> Result<(i64, i64, i64)>
Auto Trait Implementations§
impl !Freeze for SqliteStore
impl !RefUnwindSafe for SqliteStore
impl Send for SqliteStore
impl !Sync for SqliteStore
impl Unpin for SqliteStore
impl UnsafeUnpin for SqliteStore
impl !UnwindSafe for SqliteStore
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