count<T extends TableRow> method
Future<int>
count<T extends TableRow>({
- Expression? where,
- int? limit,
- bool useCache = true,
- 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,
);
}