Skip to main content

fetch_all

Function fetch_all 

Source
pub async fn fetch_all<'e, T, DB, Ex>(
    sql: &str,
    params: &[Value],
    executor: Ex,
) -> Result<Vec<T>, FletchError>
where DB: Database + DatabaseBindable, Ex: Executor<'e, Database = DB> + Send, T: for<'r> FromRow<'r, <DB as Database>::Row> + Send + Unpin,
Expand description

Execute a raw SQL query and return all matching rows.