doCount method

  1. @override
FutureOr<int> doCount(
  1. TransactionOperation op,
  2. String entityName,
  3. String table, {
  4. EntityMatcher? matcher,
  5. Object? parameters,
  6. List? positionalParameters,
  7. Map<String, Object?>? namedParameters,
  8. PreFinishDBOperation<int, int>? preFinish,
})
override

Implementation

@override
FutureOr<int> doCount(
    TransactionOperation op, String entityName, String table,
    {EntityMatcher? matcher,
    Object? parameters,
    List? positionalParameters,
    Map<String, Object?>? namedParameters,
    PreFinishDBOperation<int, int>? preFinish}) {
  return executeTransactionOperation(
      op,
      (conn) => _doCountImpl(op, table, matcher, parameters)
          .resolveMapped((res) => _finishOperation(op, res, preFinish)));
}