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

#include <sqt/orm/value/trivial/basic/nullable_value_traits.h>

Description

template<NullableValueType T>
class sqt::NullableValueTraits< T >

Defines traits for nullable value types.

Template Parameters
TA type that satisfies the sqt::NullableValueType concept.

This traits type is a wrapper around sqt::PrimitiveValueTraits<>, adding support for nullability.

This class template satisfies the sqt::BasicValueTraitsType concept.

See also
sqt::BasicValueTraitsType
sqt::NullableValueType
sqt::PrimitiveValueTraits<>

Public Types

using ValueType = T
using InnerValueTriats = PrimitiveValueTraits<internal::GetOptionalValueTypeT<T>>

Static Public Member Functions

static void BindValue (Statement &statement, int parameter_index, const T &value)
static T RetrieveValue (const Statement &statement, int column_index)

Static Public Attributes

static constexpr DataType DataType = InnerValueTriats::DataType
static constexpr bool IsNullable = true