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

◆ MakeAutoIncReplacer()

template<EntityValueType ENTITY>
constexpr auto sqt::DataContext< ENTITY >::MakeAutoIncReplacer ( )
staticconstexprnoexcept

Creates an inserter for inserting an entity into the database table, automatically generating the primary key value and replacing the existing row.

Returns
A new inserter instance.

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

See also
sqt::DataContext<>::AutoIncReplace()
sqt::DataContext<>::MakeAutoIncInserter()