Class foreign_storage::IntegralFixedLengthBoundsValidator

template<typename T>
class IntegralFixedLengthBoundsValidator

Public Static Functions

template<typename D>
static void validateValue(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, typename TT = T, std::enable_if_t<std::is_signed<TT>::value, int> = 0>
static bool checkBounds(const T &value)

Check bounds for value in signed case.

Return

true if value within bounds

Parameters
  • value: - value to check

template<typename D, typename TT = T, std::enable_if_t<!std::is_signed<TT>::value, int> = 0>
static bool checkBounds(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()