replace<T extends Table, D> method

void replace<T extends Table, D>(
  1. TableInfo<T, D> table,
  2. Insertable<D> row
)

Replaces the row from the table with the updated values. The row in the table with the same primary key will be replaced.

See also:

Implementation

void replace<T extends Table, D>(
  TableInfo<T, D> table,
  Insertable<D> row,
) {
  _addUpdate(table, UpdateKind.update);
  final stmt = UpdateStatement(_user, table)..replace(row, dontExecute: true);
  _addContext(stmt.constructQuery());
}