pub struct FileStorage {
pub path: PathBuf,
}
Fields§
§path: PathBuf
Implementations§
Trait Implementations§
Source§impl AlterTable for FileStorage
impl AlterTable for FileStorage
fn rename_schema<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
new_table_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn rename_column<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
old_column_name: &'life2 str,
new_column_name: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn add_column<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
column_def: &'life2 ColumnDef,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn drop_column<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
column_name: &'life2 str,
if_exists: bool,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Source§impl Clone for FileStorage
impl Clone for FileStorage
Source§fn clone(&self) -> FileStorage
fn clone(&self) -> FileStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CustomFunction for FileStorage
impl CustomFunction for FileStorage
fn fetch_function<'a, 'life0, 'async_trait>(
&'a self,
_func_name: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Option<&'a CustomFunction>, Error>> + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn fetch_all_functions<'a, 'async_trait>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<Vec<&'a CustomFunction>, Error>> + 'async_trait>>where
'a: 'async_trait,
Self: 'async_trait,
Source§impl CustomFunctionMut for FileStorage
impl CustomFunctionMut for FileStorage
fn insert_function<'life0, 'async_trait>(
&'life0 mut self,
_func: CustomFunction,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn delete_function<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_func_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Source§impl Debug for FileStorage
impl Debug for FileStorage
Source§impl<'de> Deserialize<'de> for FileStorage
impl<'de> Deserialize<'de> for FileStorage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Index for FileStorage
impl Index for FileStorage
fn scan_indexed_data<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'a self,
_table_name: &'life0 str,
_index_name: &'life1 str,
_asc: Option<bool>,
_cmp_value: Option<(&'life2 IndexOperator, Value)>,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<(Key, DataRow), Error>> + 'a>>, Error>> + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Source§impl IndexMut for FileStorage
impl IndexMut for FileStorage
fn create_index<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
_table_name: &'life1 str,
_index_name: &'life2 str,
_column: &'life3 OrderByExpr,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn drop_index<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_table_name: &'life1 str,
_index_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Source§impl Metadata for FileStorage
impl Metadata for FileStorage
Source§impl Serialize for FileStorage
impl Serialize for FileStorage
Source§impl Store for FileStorage
impl Store for FileStorage
fn fetch_all_schemas<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Schema>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Schema>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_data<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
key: &'life2 Key,
) -> Pin<Box<dyn Future<Output = Result<Option<DataRow>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn scan_data<'a, 'life0, 'async_trait>(
&'a self,
table_name: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<RowIter<'a>>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn fetch_referencings<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Referencing>, Error>> + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Source§impl StoreMut for FileStorage
impl StoreMut for FileStorage
fn insert_schema<'life0, 'life1, 'async_trait>(
&'life0 mut self,
schema: &'life1 Schema,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_schema<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
rows: Vec<DataRow>,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn insert_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
rows: Vec<(Key, DataRow)>,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_data<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table_name: &'life1 str,
keys: Vec<Key>,
) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Transaction for FileStorage
impl Transaction for FileStorage
fn begin<'life0, 'async_trait>(
&'life0 mut self,
autocommit: bool,
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn rollback<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn commit<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for FileStorage
impl RefUnwindSafe for FileStorage
impl Send for FileStorage
impl Sync for FileStorage
impl Unpin for FileStorage
impl UnwindSafe for FileStorage
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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