Function mentat_db::debug::dump_sql_query [] [src]

pub fn dump_sql_query(
    conn: &Connection,
    sql: &str,
    params: &[&ToSql]
) -> Result<String>

Execute the given sql query with the given params and format the results as a tab-and-newline formatted string suitable for debug printing.

The query is printed followed by a newline, then the returned columns followed by a newline, and then the data rows and columns. All columns are aligned.