UpsertClause<Row extends Object, RS extends GeneratedTable<Row, RS>>.doUpdate constructor

UpsertClause<Row extends Object, RS extends GeneratedTable<Row, RS>>.doUpdate(
  1. Insertable<Row> update(
    1. RS old
    ), {
  2. List<TableColumn<Object>>? target,
  3. Expression<bool> where(
    1. RS old
    )?,
  4. Expression<bool> targetCondition(
    1. RS old
    )?,
})

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

Implementation

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