Skip to main content

fetch_keyed

Function fetch_keyed 

Source
pub async fn fetch_keyed<'e, E>(
    ex: E,
    sql: &str,
    keys: &[&str],
) -> Result<HashMap<String, Media>, Error>
where E: Executor<'e, Database = Sqlite>,
Expand description

Run sql, which must select key plus every media column (m.*), binding keys in order. Returns the rows keyed by key.