count static method

  1. @Deprecated('Will be removed in 2.0.0. Use: db.count instead.')
Future<int> count(
  1. Session session, {
  2. WhereExpressionBuilder<QueryLogEntryTable>? where,
  3. int? limit,
  4. bool useCache = true,
  5. Transaction? transaction,
})

Implementation

@Deprecated('Will be removed in 2.0.0. Use: db.count instead.')
static Future<int> count(
  _i1.Session session, {
  _i1.WhereExpressionBuilder<QueryLogEntryTable>? where,
  int? limit,
  bool useCache = true,
  _i1.Transaction? transaction,
}) async {
  return session.db.count<QueryLogEntry>(
    where: where != null ? where(QueryLogEntry.t) : null,
    limit: limit,
    useCache: useCache,
    transaction: transaction,
  );
}