insertAllOnConflictUpdate<T extends Table, D> method

void insertAllOnConflictUpdate<T extends Table, D>(
  1. TableInfo<T, D> table,
  2. Iterable<Insertable<D>> rows
)

Equivalent of InsertStatement.insertOnConflictUpdate for multiple rows that will be inserted in this batch.

Implementation

void insertAllOnConflictUpdate<T extends Table, D>(
    TableInfo<T, D> table, Iterable<Insertable<D>> rows) {
  for (final row in rows) {
    insert<T, D>(table, row, onConflict: DoUpdate((_) => row));
  }
}