onConflict method

InsertStatement<Row, RS> onConflict(
  1. UpsertClause<Row, RS> upsert
)

Adds an upsert clause to this insert statement.

Implementation

InsertStatement<Row, RS> onConflict(UpsertClause<Row, RS> upsert) {
  assert(upsertClause == null, 'upsert clause already set');
  upsertClause = upsert;
  return this;
}