Trait Query

Source
pub trait Query<'a, T, A> {
    // Required methods
    fn from_request<'life0, 'async_trait>(
        request: &'life0 mut Request<Body>,
        table: &'a SqlTableSchema,
    ) -> Pin<Box<dyn Future<Output = Result<Self, QueryErr>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
    fn execute_sql(&'a self, connection: T) -> A;
}

Required Methods§

Source

fn from_request<'life0, 'async_trait>( request: &'life0 mut Request<Body>, table: &'a SqlTableSchema, ) -> Pin<Box<dyn Future<Output = Result<Self, QueryErr>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Source

fn execute_sql(&'a self, connection: T) -> A

Implementors§

Source§

impl<'a> Query<'a, &'a Connection, Result<Cursor<'a>, Error>> for Sqlite3Query<'a>