SQT
A C++ ORM framework for SQLite
Loading...
Searching...
No Matches
sqt::PrimaryKey< COLUMNS > Class Template Reference

#include <sqt/orm/table/primary_key/primary_key.h>

Inheritance diagram for sqt::PrimaryKey< COLUMNS >:

Description

template<ColumnType... COLUMNS>
class sqt::PrimaryKey< COLUMNS >

Represents a primary key for a table, which is a composite of one or more columns.

Template Parameters
COLUMNSThe column types that make up the primary key. Each column must satisfy the sqt::ColumnType concept and must not be nullable.

This class template is a base class for all primary key types defined using the SQT_PRIMARY_KEY or SQT_PRIMARY_KEY_AUTO_INC macros.

See also
sqt::ColumnType
SQT_PRIMARY_KEY
SQT_PRIMARY_KEY_AUTO_INC

Public Member Functions

AbstractColumnsView GetAbstractColumns () const noexcept override
Public Member Functions inherited from sqt::AbstractPrimaryKey
 AbstractPrimaryKey (const AbstractPrimaryKey &)=delete
AbstractPrimaryKeyoperator= (const AbstractPrimaryKey &)=delete
virtual bool IsAutoInc () const noexcept=0

(Note that these are not member symbols.)

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