select method

  1. @override
Future<DbResult> select(
  1. String table, {
  2. Map<String, dynamic>? where,
})
override

Implementation

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