doInsertRelationship method
FutureOr<bool>
doInsertRelationship(
- TransactionOperation op,
- String entityName,
- String table,
- String field,
- dynamic id,
- String otherTableName,
- List otherIds, [
- PreFinishDBOperation<
bool, bool> ? preFinish,
override
Implementation
@override
FutureOr<bool> doInsertRelationship(
TransactionOperation op,
String entityName,
String table,
String field,
dynamic id,
String otherTableName,
List otherIds,
[PreFinishDBOperation<bool, bool>? preFinish]) {
return generateInsertRelationshipSQLs(op.transaction, entityName, table,
field, id, otherTableName, otherIds)
.resolveMapped((sqls) {
return insertRelationshipSQLs(
op, entityName, table, sqls, id, otherTableName, otherIds)
.resolveMapped((r) => _finishSQLOperation(sqls, op, r, preFinish));
});
}