Trait diesel::query_dsl::methods::LoadQuery

source ·
pub trait LoadQuery<'query, Conn, U, B = DefaultLoadingMode>: RunQueryDsl<Conn> {
    type RowIter<'conn>: Iterator<Item = QueryResult<U>>
       where Conn: 'conn;
}
Expand description

The load method

This trait should not be relied on directly by most apps. Its behavior is provided by RunQueryDsl. However, you may need a where clause on this trait to call load from generic code.

Required Associated Types§

source

type RowIter<'conn>: Iterator<Item = QueryResult<U>> where Conn: 'conn

Return type of LoadQuery::internal_load

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'query, Conn, T, U, DB, B> LoadQuery<'query, Conn, U, B> for T
where Conn: Connection<Backend = DB> + LoadConnection<B>, T: AsQuery + RunQueryDsl<Conn>, T::Query: QueryFragment<DB> + QueryId + 'query, T::SqlType: CompatibleType<U, DB>, DB: Backend + QueryMetadata<T::SqlType> + 'static, U: FromSqlRow<<T::SqlType as CompatibleType<U, DB>>::SqlType, DB> + 'static, <T::SqlType as CompatibleType<U, DB>>::SqlType: 'static,

source§

type RowIter<'conn> = LoadIter<U, <Conn as LoadConnection<B>>::Cursor<'conn, 'query>, <<T as AsQuery>::SqlType as CompatibleType<U, DB>>::SqlType, DB> where Conn: 'conn