Class foreign_storage::IntegralFixedLengthBoundsValidator¶
-
template<typename
T
>
classIntegralFixedLengthBoundsValidator
¶ Public Static Functions
-
template<typename
D
>
static voidvalidateValue
(const D &data_value, const SQLTypeInfo &column_type)¶
Private Static Functions
-
static bool
valueWithinBounds
(const T &value, const SQLTypeInfo &column_type)¶
-
static std::pair<std::string, std::string>
getMinMaxBoundsAsStrings
(const SQLTypeInfo &column_type)¶
-
template<typename
D
, typenameTT
= T, std::enable_if_t<std::is_signed<TT>::value, int> = 0>
static boolcheckBounds
(const T &value)¶ Check bounds for value in signed case.
- Return
true if value within bounds
- Parameters
value
: - value to check
-
template<typename
D
, typenameTT
= T, std::enable_if_t<!std::is_signed<TT>::value, int> = 0>
static boolcheckBounds
(const T &value)¶ Check bounds for value in unsigned case.
- Return
true if value within bounds
- Parameters
value
: - value to check
-
template<typename
D
>
static std::pair<std::string, std::string>getMinMaxBoundsAsStrings
()¶
-
template<typename