queryRowCount method

Future<int?> queryRowCount()

queryRowCount fetches of the methods (insert, query, update, delete) can also be done using raw SQL commands. This method uses a raw query to give the row count.

Implementation

Future<int?> queryRowCount() async {
  final T db = await this.database;
  return this
      .firstIntValue(await db.rawQuery('SELECT COUNT(*) FROM $kTable'));
}