select method

Future<List<DbRow>> select({
  1. required String table,
  2. String columns = "*",
  3. String? where,
  4. String? orderBy,
  5. int? limit,
  6. int? offset,
  7. String? groupBy,
  8. bool verbose = false,
})

A select query

Implementation

Future<List<DbRow>> select(
    {required String table,
    String columns = "*",
    String? where,
    String? orderBy,
    int? limit,
    int? offset,
    String? groupBy,
    bool verbose = false}) async {
  List<Map<String, dynamic>>? data;
  try {
    data = await _db.select(
        table: table,
        columns: columns,
        where: where,
        orderBy: orderBy,
        limit: limit,
        offset: offset,
        groupBy: groupBy,
        verbose: verbose);
  } catch (e) {
    rethrow;
  }
  return _rowsFromRawData(table, data!);
}