OnConflictClauseBuilder
interface OnConflictClauseBuilder
Configurator for the ON CONFLICT clause in an INSERT query.
Functions
Link copied to clipboard
In case of conflict, perform an update (DO UPDATE) using column-value pairs. This is the preferred way as it's more readable and less error-prone than manually assembling a string. Usage example: doUpdate( "last_login" to "NOW()", "login_attempts" to "EXCLUDED.login_attempts + 1" )
In case of conflict, perform an update (DO UPDATE).
In case of conflict, perform an update (DO UPDATE) using a column-value map. Useful when update logic is built dynamically.
Link copied to clipboard
Defines the conflict target as an existing constraint name.