OnConflictClause class

ON CONFLICT (cols) DO {NOTHING | UPDATE SET ... [WHERE ...]} clause attached to an INSERT to form an UPSERT.

Constructors

OnConflictClause({List<String> targetColumns = const [], bool doNothing = false, Map<String, Expr> assignments = const {}, Expr? where})

Properties

assignments → Map<String, Expr>
Assignments for DO UPDATE SET col = expr, .... Empty when doNothing.
final
doNothing → bool
True for DO NOTHING, false for DO UPDATE SET ....
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
targetColumns → List<String>
Conflict-target column names. Empty means "any unique constraint violation" (SQLite shorthand: ON CONFLICT DO ...).
final
where → Expr?
Optional WHERE filter on the UPDATE branch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited