pub struct SqliteFs { /* private fields */ }Implementations§
Source§impl SqliteFs
 
impl SqliteFs
Sourcepub async fn init(fs_path: &str) -> Result<()>
 
pub async fn init(fs_path: &str) -> Result<()>
Init the SQLite Filesystem. Must be called 1 time before anything can be used!
Behavior
- FS does exist- the existing FS will be loaded
- FS does not exist- a new FS will be created
Args:
- fs_path- Path where the FS should be created/loaded from.
Sourcepub async fn metadata(f_name: &str) -> Result<SqliteFsFileMetadata>
 
pub async fn metadata(f_name: &str) -> Result<SqliteFsFileMetadata>
Returns the metadata of a file
Behavior:
- File does exist- Return metadata (everything (id, timestamps, etc.) except the filecontent)
- File does not exist- Throws Error
- DB Error happens- Throws Error
Args:
- f_name- Name of the file
Sourcepub fn get_fs_path(&self) -> String
 
pub fn get_fs_path(&self) -> String
Returns the path where the FS is located
Sourcepub async fn get_filename_list() -> Result<Vec<SqliteFsFileName>>
 
pub async fn get_filename_list() -> Result<Vec<SqliteFsFileName>>
Args:
- `` -
Sourcepub async fn delete_zero_sized_files() -> Result<Vec<SqliteFsFileName>>
 
pub async fn delete_zero_sized_files() -> Result<Vec<SqliteFsFileName>>
Args:
- `` -
Auto Trait Implementations§
impl Freeze for SqliteFs
impl !RefUnwindSafe for SqliteFs
impl Send for SqliteFs
impl Sync for SqliteFs
impl Unpin for SqliteFs
impl !UnwindSafe for SqliteFs
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
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more