Skip to main content

read_rows

Function read_rows 

Source
pub fn read_rows(
    path: &Path,
    sql: &str,
    params: &[&dyn ToSql],
) -> Result<Option<Vec<Map<String, Value>>>, InterchangeError>
Expand description

Every row of sql as a JSON object keyed by column name; None when the file does not exist.