doSelectRelationship<R> method

  1. @override
FutureOr<R> doSelectRelationship<R>(
  1. TransactionOperation op,
  2. String entityName,
  3. String table,
  4. String field,
  5. dynamic id,
  6. String otherTableName, [
  7. PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish,
])
override

Implementation

@override
FutureOr<R> doSelectRelationship<R>(
    TransactionOperation op,
    String entityName,
    String table,
    String field,
    dynamic id,
    String otherTableName,
    [PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish]) {
  return generateSelectRelationshipSQL(
          op.transaction, entityName, table, field, id, otherTableName)
      .resolveMapped((sql) {
    return selectRelationshipSQL(
            op, entityName, table, sql, id, otherTableName)
        .resolveMapped((r) => _finishSQLOperation(sql, op, r, preFinish));
  });
}