doCount method
FutureOr<int>
doCount(
- TransactionOperation op,
- String entityName,
- String table, {
- EntityMatcher? matcher,
- Object? parameters,
- List? positionalParameters,
- Map<
String, Object?> ? namedParameters, - 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 generateCountSQL(op.transaction, entityName, table,
matcher: matcher,
parameters: parameters,
positionalParameters: positionalParameters,
namedParameters: namedParameters)
.resolveMapped((sql) {
return countSQL(op, entityName, table, sql)
.resolveMapped((r) => _finishSQLOperation(sql, op, r, preFinish));
});
}