count method

  1. @override
Future<int> count(
  1. String collection
)
override

Implementation

@override
Future<int> count(String collection) async {
  final result = await _database.rawQuery(
    'SELECT COUNT(*) as count FROM $collection',
  );
  return ParseUtils.asInt(result.first['count']);
}