pub trait StoreMut<T> where
T: Debug, {
fn insert_schema<'life0, 'async_trait>(
self,
schema: &'life0 Schema
) -> Pin<Box<dyn Future<Output = Result<(Self, ()), (Self, Error)>> + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delete_schema<'life0, 'async_trait>(
self,
table_name: &'life0 str
) -> Pin<Box<dyn Future<Output = Result<(Self, ()), (Self, Error)>> + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn insert_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
rows: Vec<Row, Global>
) -> Pin<Box<dyn Future<Output = Result<(Self, ()), (Self, Error)>> + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn update_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
rows: Vec<(T, Row), Global>
) -> Pin<Box<dyn Future<Output = Result<(Self, ()), (Self, Error)>> + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn delete_data<'life0, 'async_trait>(
self,
table_name: &'life0 str,
keys: Vec<T, Global>
) -> Pin<Box<dyn Future<Output = Result<(Self, ()), (Self, Error)>> + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
By implementing StoreMut
trait,
you can run INSERT
, CREATE TABLE
, DELETE
, UPDATE
and DROP TABLE
queries.