UpsertClause<T extends Table, D> class
abstract
A upsert clause controls how to behave when a uniqueness constraint is violated during an insert.
Typically, one would use DoUpdate to run an update instead in this case.
Constructors
-
UpsertClause.doNothing({List<
Column< ? target})Object> > -
Creates a DoNothing clause.
factory
-
UpsertClause.doUpdate(Insertable<
D> update(T old), {List<Column< ? target, Expression<Object> >bool> where(T old)?, Expression<bool> targetCondition(T old)?}) -
Creates a DoUpdate clause turning the insert into an update for the
conflicting row.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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