count method
Count All
Implementation
Future<int> count() async {
final db = await JDB.instance.database;
final result = await db.rawQuery('SELECT COUNT(*) as Count FROM $table');
final count = result.first['Count'] as int?;
return count ?? 0;
}