packResult function
Pack the result in the expected sqflite format.
Implementation
Map<String, Object?> packResult(ffi.ResultSet result) {
var columns = result.columnNames;
var rows = result.rows;
// This is what sqflite expected
return <String, Object?>{'columns': columns, 'rows': rows};
}