#include <sqt/orm/value/identifier/identifier_value_traits.h>
Defines traits for the value type of an identifier.
| IDENTIFIER | A 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.
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) |