OnConflictClause
The ON CONFLICT clause of an InsertQuery, configured inside InsertQuery.onConflict. The target is optional; an action is required.
Functions
Link copied to clipboard
Link copied to clipboard
Updates the existing row. setExpression is the SET body as SQL, in which excluded is the row that could not be inserted: doUpdate("cognomen = excluded.cognomen, updated_at = now()"). whereCondition limits which conflicting rows are updated.
As doUpdate, with the assignments given as a column-to-expression map.
As doUpdate, with the assignments given as column-to-expression pairs.
Link copied to clipboard
Conflicts on a named constraint.