queryCount method

  1. @override
Future<int> queryCount([
  1. String? tableName
])
override

查询该表的总数

Implementation

@override
Future<int> queryCount([String? tableName]) async {
  List<Map<String, dynamic>> maps = await db.query(tableName ?? table, columns: [_primaryKey]);
  return maps.length;
}