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

◆ MakePrimaryKey()

template<ColumnType... COLUMNS>
PrimaryKey< COLUMNS... > MakePrimaryKey ( const COLUMNS &... columns)
related

A helper function to deduce the type of a primary key from columns.

Template Parameters
COLUMNSThe column types that make up the primary key.
Parameters
columnsThe column instances. They are only used to deduce the column types and will not be used.
Returns
The sqt::PrimaryKey<> type deduced from the provided columns.