Trait gluesql::store::StoreMut[][src]

pub trait StoreMut<T: Debug> where
    Self: Sized
{ fn insert_schema<'life0, 'async_trait>(
        self,
        schema: &'life0 Schema
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn delete_schema<'life0, 'async_trait>(
        self,
        table_name: &'life0 str
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn insert_data<'life0, 'async_trait>(
        self,
        table_name: &'life0 str,
        rows: Vec<Row>
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn update_data<'life0, 'async_trait>(
        self,
        table_name: &'life0 str,
        rows: Vec<(T, Row)>
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn delete_data<'life0, 'async_trait>(
        self,
        table_name: &'life0 str,
        keys: Vec<T>
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + 'async_trait>>
    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.

Required methods

Implementors