countBy method

Future<int> countBy(
  1. Where where
)

Implementation

Future<int> countBy(Where where) async {
  var query = Sqler()
    ..from(qName)
    ..addSelect(SQL.count(QField('id', as: 'count_records')))
    ..where(where);
  var result = await table.execute(db, query);
  return result.countRecords;
}