onConflict

abstract fun onConflict(action: Action): Constraint

Specifies ON CONFLICT resolution algorithm to be used when a PrimaryKeyConstraint violation occurs.

For example, Action.ROLLBACK, Action.ABORT, etc.

Return

The current Constraint instance for chaining further definitions.

Parameters

action

The conflict resolution Action to apply

See also