SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches

◆ MakeUpdater() [2/2]

template<EntityValueType ENTITY>
template<ConflictAction CONFLICT_ACTION = ConflictAction::Abort, AssignmentType... ASSIGNMENTS>
constexpr auto sqt::DataContext< ENTITY >::MakeUpdater ( ASSIGNMENTS &&... assignments)
staticconstexprnoexcept

Creates an updater for updating the specified columns in the database table.

Template Parameters
CONFLICT_ACTIONThe conflict action to be used when an unique constraint violation occurs. The default action is sqt::ConflictAction::Abort.
ASSIGNMENTSA pack of the assignment types.
Parameters
assignmentsThe assignments specifying the columns and their values to be updated.
Returns
A new updater instance.

This method provides more control over the updated columns compared to the MakeUpdater() method. It allows specifying which columns to update and their corresponding values.

For more information about the assignments, refer to the sqt::AssignmentType.

See also
sqt::AssignmentType
sqt::DataContext<>::MakeNoPrimaryKeyUpdater()
sqt::DataContext<>::MakeUpdater()