count<T extends TableRow> method

Future<int> count<T extends TableRow>({
  1. Expression? where,
  2. int? limit,
  3. bool useCache = true,
  4. Transaction? transaction,
})

Counts the number of rows matching the where expression. If omitted, will return the count of all rows in the table.

Implementation

Future<int> count<T extends TableRow>({
  Expression? where,
  int? limit,
  bool useCache = true,
  Transaction? transaction,
}) async {
  return _databaseConnection.count<T>(
    _session,
    where: where,
    limit: limit,
    transaction: transaction,
  );
}