insertOnConflictUpdate method

Future<int> insertOnConflictUpdate(
  1. Insertable<Row> row
)

Inserts one row into this table table, replacing an existing row if it exists already.

Please note that this method is only available on recent sqlite3 versions. See also InsertStatement.insertOnConflictUpdate. By default, only the primary key is used for detect uniqueness violations. If you have further uniqueness constraints, please use the general insertOne method with a DoUpdate including those columns in its DoUpdate.target.

Implementation

Future<int> insertOnConflictUpdate(Insertable<Row> row) {
  return insert().insertOnConflictUpdate(row);
}