doDelete<R> method

  1. @override
FutureOr<R> doDelete<R>(
  1. TransactionOperation op,
  2. String entityName,
  3. String table,
  4. EntityMatcher matcher, {
  5. Object? parameters,
  6. List? positionalParameters,
  7. Map<String, Object?>? namedParameters,
  8. PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish,
})
override

Implementation

@override
FutureOr<R> doDelete<R>(TransactionOperation op, String entityName,
    String table, EntityMatcher matcher,
    {Object? parameters,
    List? positionalParameters,
    Map<String, Object?>? namedParameters,
    PreFinishDBOperation<Iterable<Map<String, dynamic>>, R>? preFinish}) {
  return generateDeleteSQL(op.transaction, entityName, table, matcher,
          parameters: parameters,
          positionalParameters: positionalParameters,
          namedParameters: namedParameters)
      .resolveMapped((sql) {
    return deleteSQL(op, entityName, table, sql)
        .resolveMapped((r) => _finishSQLOperation(sql, op, r, preFinish));
  });
}