query method

Future<List<Map<String, Object?>>> query({
  1. bool? distinct,
  2. List<String>? columns,
  3. String? where,
  4. List<Object?>? whereArgs,
  5. String? groupBy,
  6. String? having,
  7. String? orderBy,
  8. int? limit,
  9. int? offset,
})

Query

Implementation

Future<List<Map<String, Object?>>> query({
  bool? distinct,
  List<String>? columns,
  String? where,
  List<Object?>? whereArgs,
  String? groupBy,
  String? having,
  String? orderBy,
  int? limit,
  int? offset,
}) async {
  batch?.query(
    tableName,
    distinct: distinct,
    columns: columns,
    where: where,
    whereArgs: whereArgs,
    groupBy: groupBy,
    having: having,
    orderBy: orderBy,
    limit: limit,
    offset: offset,
  );
  if (batch != null) return []; // fake result, please get the real result from `batch.commit()`
  return await executor.query(
    tableName,
    distinct: distinct,
    columns: columns,
    where: where,
    whereArgs: whereArgs,
    groupBy: groupBy,
    having: having,
    orderBy: orderBy,
    limit: limit,
    offset: offset,
  );
}