doSelectAll<R> method

  1. @override
FutureOr<List<R>> doSelectAll<R>(
  1. TransactionOperation op,
  2. String entityName,
  3. String table, {
  4. PreFinishDBOperation<Iterable<Map<String, dynamic>>, List<R>>? preFinish,
})
override

Implementation

@override
FutureOr<List<R>> doSelectAll<R>(
    TransactionOperation op, String entityName, String table,
    {PreFinishDBOperation<Iterable<Map<String, dynamic>>, List<R>>?
        preFinish}) {
  return generateSelectSQL(op.transaction, entityName, table, ConditionANY())
      .resolveMapped((sql) {
    return selectSQL(op, entityName, table, sql)
        .resolveMapped((r) => _finishSQLOperation(sql, op, r, preFinish));
  });
}