sqlCount method

Future<int?> sqlCount({
  1. String? where,
  2. bool verbose = false,
})

Count rows

Implementation

Future<int?> sqlCount({String? where, bool verbose = false}) async {
  final n = db!
      .count(table: table!.name, where: where, verbose: verbose)
      .catchError((dynamic e) =>
          throw ReadQueryException("Can not count from database $e"));
  return n;
}