rawQuery method
Future<List<Map<String, Object?> > >
rawQuery(
- Filter where(
- TMeta t
- String query, {
- bool? useIsolate,
- Map<
String, dynamic> ? isolateArgs, - void onIsolatePreMap()?,
inherited
Implementation
@override
@protected
Future<List<Map<String, Object?>>> rawQuery(
Filter Function(TMeta t)? where,
String query, {
final bool? useIsolate,
Map<String, dynamic>? isolateArgs,
void Function(Map<String, dynamic>? isolateArgs)? onIsolatePreMap,
}) async {
final db = await dbContext.database;
if (where == null) {
return await db.rawQuery(query);
} else {
final formattedQuery = await whereString(where, useIsolate);
return await db.rawQuery(
'$query WHERE ${formattedQuery.filter}', formattedQuery.whereArgs);
}
}