pub trait Store<T> where
T: Debug, {
fn fetch_schema<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Schema>, Error>> + 'async_trait, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn scan_data<'life0, 'life1, 'async_trait>(
&'life0 self,
table_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Iterator<Item = Result<(T, Row), Error>> + 'static, Global>, Error>> + 'async_trait, Global>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
By implementing Store
trait, you can run SELECT
query.