[][src]Trait gluesql::store::Store

pub trait Store<T: Debug> {
#[must_use]    fn fetch_schema<'life0, 'life1, 'async_trait>(
        &'life0 self,
        table_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<Option<Schema>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn scan_data<'life0, 'life1, 'async_trait>(
        &'life0 self,
        table_name: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<RowIter<T>>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

By implementing Store trait, you can run SELECT queries.

Required methods

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

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

Loading content...

Implementors

impl Store<IVec> for SledStorage[src]

Loading content...