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

pub trait StoreMut<T: Debug> where
    Self: Sized
{ #[must_use] fn generate_id<'life0, 'async_trait>(
        self,
        table_name: &'life0 str
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, T>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert_schema<'life0, 'async_trait>(
        self,
        schema: &'life0 Schema
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete_schema<'life0, 'async_trait>(
        self,
        table_name: &'life0 str
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn insert_data<'life0, 'async_trait>(
        self,
        key: &'life0 T,
        row: Row
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn delete_data<'life0, 'async_trait>(
        self,
        key: &'life0 T
    ) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

StoreMut takes role of mutation, related to INSERT, CREATE, DELETE, DROP and UPDATE.

Required methods

#[must_use]fn generate_id<'life0, 'async_trait>(
    self,
    table_name: &'life0 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, T>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn insert_schema<'life0, 'async_trait>(
    self,
    schema: &'life0 Schema
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete_schema<'life0, 'async_trait>(
    self,
    table_name: &'life0 str
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn insert_data<'life0, 'async_trait>(
    self,
    key: &'life0 T,
    row: Row
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]fn delete_data<'life0, 'async_trait>(
    self,
    key: &'life0 T
) -> Pin<Box<dyn Future<Output = MutResult<Self, ()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl StoreMut<IVec> for SledStorage[src]

Loading content...