select method
Implementation
@override
Future<DbResult> select(String table, {Map<String, dynamic>? where}) async {
var query = 'SELECT * FROM $table';
final params = <String, dynamic>{};
if (where != null && where.isNotEmpty) {
final conditions = where.entries
.map((e) => '${e.key} = ${ph(e.key)}')
.join(' AND ');
query += ' WHERE $conditions';
params.addAll(where);
}
return rawQuery(query, values: params.isEmpty ? null : params);
}