UpsertClause<T extends Table, D>.doUpdate constructor

UpsertClause<T extends Table, D>.doUpdate(
  1. Insertable<D> update(
    1. T old
    ), {
  2. List<Column<Object>>? target,
  3. Expression<bool> where(
    1. T old
    )?,
  4. Expression<bool> targetCondition(
    1. T old
    )?,
})

Creates a DoUpdate clause turning the insert into an update for the conflicting row.

Implementation

factory UpsertClause.doUpdate(
  Insertable<D> Function(T old) update, {
  List<Column>? target,
  Expression<bool> Function(T old)? where,
  Expression<bool> Function(T table)? targetCondition,
}) = DoUpdate;