Trait gluesql_core::store::StoreMut
source · pub trait StoreMut {
// Provided methods
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 { ... }
}
Expand description
By implementing StoreMut
trait,
you can run INSERT
, CREATE TABLE
, DELETE
, UPDATE
and DROP TABLE
queries.