onConflict

abstract fun onConflict(action: Action): Constraint

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

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

Return

The current Constraint instance, allowing for further chaining if necessary.

Parameters

action

The conflict resolution Action to be performed.

See also