pub trait StoreMut {
// Provided methods
fn insert_schema(&mut self, _schema: &Schema) -> Result<()> { ... }
fn delete_schema(&mut self, _table_name: &str) -> Result<()> { ... }
fn append_data(
&mut self,
_table_name: &str,
_rows: Vec<Vec<Value>>,
) -> Result<()> { ... }
fn insert_data(
&mut self,
_table_name: &str,
_rows: Vec<(Key, Vec<Value>)>,
) -> Result<()> { ... }
fn delete_data(&mut self, _table_name: &str, _keys: Vec<Key>) -> Result<()> { ... }
}Expand description
By implementing StoreMut trait,
you can run INSERT, CREATE TABLE, DELETE, UPDATE and DROP TABLE queries.
Provided Methods§
fn insert_schema(&mut self, _schema: &Schema) -> Result<()>
fn delete_schema(&mut self, _table_name: &str) -> Result<()>
fn append_data( &mut self, _table_name: &str, _rows: Vec<Vec<Value>>, ) -> Result<()>
fn insert_data( &mut self, _table_name: &str, _rows: Vec<(Key, Vec<Value>)>, ) -> Result<()>
fn delete_data(&mut self, _table_name: &str, _keys: Vec<Key>) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".