upsertAll method

Future<List<RowData>> upsertAll(
  1. Object table, {
  2. required List<List<ColumnValue<Object>>> rows,
  3. required Iterable<Object> constraints,
  4. Returning? returning,
})

Implementation

Future<List<RowData>> upsertAll(Object table, {required List<List<ColumnValue>> rows, required Iterable<Object> constraints, Returning? returning}) async {
  return await upsertAllValues(
    table,
    columns: rows.first.map((e) => e.key),
    constraints: constraints,
    rows: rows.mapList((e) => e.mapList((x) => x.value)),
    returning: returning,
  );
}