countSQL method

FutureOr<int> countSQL(
  1. TransactionOperation op,
  2. String entityName,
  3. String table,
  4. SQL sql,
)

Implementation

FutureOr<int> countSQL(
    TransactionOperation op, String entityName, String table, SQL sql) {
  if (sql.isDummy) return 0;

  return executeTransactionOperation(op, sql, (connection) {
    _logTransactionOperationSQL('countSQL', op, sql);
    return doCountSQL(entityName, table, sql, op.transaction, connection);
  });
}