Trait Query

Source
pub trait Query<'__query>: Sql<'__query> {
    // Provided methods
    fn query_row<C: TryInto<ConnTrans<'__query>>, T: Table>(
        &'__query self,
        into_conn_trans: C,
    ) -> Result<T, Error>
       where Error: From<C::Error> { ... }
    fn query_rows<C: TryInto<ConnTrans<'__query>>, T: Table>(
        &'__query self,
        into_conn_trans: C,
    ) -> Result<Vec<T>, Error>
       where Error: From<C::Error> { ... }
}

Provided Methods§

Source

fn query_row<C: TryInto<ConnTrans<'__query>>, T: Table>( &'__query self, into_conn_trans: C, ) -> Result<T, Error>
where Error: From<C::Error>,

Source

fn query_rows<C: TryInto<ConnTrans<'__query>>, T: Table>( &'__query self, into_conn_trans: C, ) -> Result<Vec<T>, Error>
where Error: From<C::Error>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§