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

◆ MakeReplacer() [2/2]

template<EntityValueType ENTITY>
template<AssignmentType... ASSIGNMENTS>
constexpr auto sqt::DataContext< ENTITY >::MakeReplacer ( ASSIGNMENTS &&... assignments)
staticconstexprnoexcept

Creates an inserter for inserting the specified columns of the entity into the database table, replacing the existing row.

Template Parameters
ASSIGNMENTSA pack of the assignment types.
Parameters
assignmentsThe assignments specifying the columns and their values to be inserted.
Returns
The new inserter instance.

This method is a shorthand for MakeInserter<sqt::ConflictAction::Replace>(assignments).

See also
sqt::AssignmentType
sqt::DataContext<>::MakeInserter(ASSIGNMENTS&&... assignments)