update method
Writes all non-null fields from the entity into the columns of all rows
that match the filter clause. Warning: That also means that, when you're
not setting a where clause explicitly, this method will update all rows in
the $state.table
.
The fields that are null on the entity object will not be changed by this operation, they will be ignored.
Returns the amount of rows that have been affected by this operation.
See also: RootTableManager.replace, which does not require filter statements and supports setting fields back to null.
Implementation
Future<int> update(Insertable<DT> Function(CU o) f) =>
$state.buildUpdateStatement().write(f($state._getUpdateCompanionBuilder));