[][src]Function toql_mysql::load_many

pub fn load_many<T: Load<T>>(
    query: &Query,
    mappers: &SqlMapperCache,
    conn: &mut Conn,
    count: bool,
    first: u64,
    max: u16
) -> Result<(Vec<T>, Option<(u32, u32)>), ToqlError>

Load a vector of structs with dependencies for a given Toql query.

Returns a tuple with the structs and an optional tuple of count values. If count argument is false, no count queries are run and the resulting Option<(u32,u32)> will be None otherwise the count queries are run and it will be Some((total count, filtered count)).