Skip to main content

on_conflict

Function on_conflict 

Source
pub fn on_conflict(columns: impl IntoExprList) -> ConflictChain
Expand description

ON CONFLICT (columns) — infer the unique index from a column list.

on_conflict(()) targets any conflict at all, which only DO NOTHING accepts. There is no ON CONSTRAINT form: SQLite infers the index from columns or not at all, so PostgreSQL’s on_conflict_on_constraint has no counterpart here.