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

#include <sqt/orm/value/identifier/identifier_value_traits.h>

Description

template<IdentifierType IDENTIFIER>
class sqt::IdentifierValueTraits< IDENTIFIER >

Defines traits for the value type of an identifier.

Template Parameters
IDENTIFIERA type that satisfies the sqt::IdentifierType concept. It can be a column type, primary key type or index type.

This traits type is a wrapper around the traits type of the identifier's value type, providing additional functionality for binding and retrieving values from SQL statements.

This class template satisfies the sqt::IdentifierValueTraitsType concept.

See also
sqt::IdentifierType
sqt::IdentifierValueTraitsType

Public Types

using IdentifierType = IDENTIFIER
using EntityType = typename IDENTIFIER::EntityType
using ValueType = typename IDENTIFIER::ValueType

Static Public Member Functions

static void BindValue (Statement &statement, int parameter_index, const ValueType &value)
static void BindValueFromEntity (Statement &statement, int parameter_index, const EntityType &entity)
static ValueType RetrieveValue (const Statement &statement, int column_index)
static void RetrieveValueToEntity (const Statement &statement, int column_index, EntityType &entity)