read method
Future<List<Map<String, Object?> > >
read(
- String table, {
- bool? distinct,
- List<
String> ? columns, - String? where,
- List<
Object?> ? whereArgs, - String? groupBy,
- String? having,
- String? orderBy,
- int? limit,
- int? offset,
override
Implementation
@override
Future<List<Map<String, Object?>>> read(
String table, {
bool? distinct,
List<String>? columns,
String? where,
List<Object?>? whereArgs,
String? groupBy,
String? having,
String? orderBy,
int? limit,
int? offset,
}) async {
try {
final queryResult = await database!.query(
table,
distinct: distinct,
columns: columns,
where: where,
whereArgs: whereArgs,
groupBy: groupBy,
having: having,
orderBy: orderBy,
limit: limit,
offset: offset,
);
return queryResult;
} catch (e) {
throw DatabaseBridgeException(error: e);
}
}