|
staticconstexprnoexcept |
Creates an updater for updating all columns in the database table.
| CONFLICT_ACTION | The conflict action to be used when an unique constraint violation occurs. The default action is sqt::ConflictAction::Abort. |
The returned updater corresponds to an UPDATE SQL statement without any conditions, so it will update all rows in the database table. To control which rows to update, use the Where() method of the updater to create a new updater with conditions.
A placeholder for the entity is implicitly added to the returned updater. To execute the updater, an entity instance must be bound.
The following code demonstrates how to use the updater:
The returned instance updates all columns of the entity type. The following alternatives provides more control over the updated columns: