DoUpdate<T extends Table, D> class
A DoUpdate upsert clause can be used to insert or update a custom companion when the underlying companion already exists.
For an example, see InsertStatement.insert.
- Inheritance
-
- Object
- UpsertClause<
T, D> - DoUpdate
Constructors
-
DoUpdate(Insertable<
D> update(T old), {List<Column< ? target, Expression<Object> >bool> where(T old)?, Expression<bool> targetCondition(T table)?}) -
Creates a
DO UPDATE
clause. -
DoUpdate.withExcluded(Insertable<
D> update(T old, T excluded), {List<Column< ? target, Expression<Object> >bool> targetCondition(T table)?, Expression<bool> where(T old, T excluded)?}) -
Creates a
DO UPDATE
clause.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
target
→ List<
Column< ?Object> > -
An optional list of columns to serve as an "conflict target", which
specifies the uniqueness constraint that will trigger the upsert.
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