UpsertClause<Row extends Object, RS extends GeneratedTable<Row, RS> > class
sealed
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.
- Implemented types
Constructors
-
UpsertClause.doNothing({List<
TableColumn< ? target})Object> > -
Creates a DoNothing clause.
constfactory
-
UpsertClause.doUpdate(Insertable<
Row> update(RS old), {List<TableColumn< ? target, Expression<Object> >bool> where(RS old)?, Expression<bool> targetCondition(RS 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
-
compileWith(
StatementCompiler compiler) → void -
Compiles this component with the given StatementCompiler by invoking the
relevant
addmethod on it.inherited -
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