MantisBase v0.4.9
Loading...
Searching...
No Matches
int_precision.cpp File Reference
Include dependency graph for int_precision.cpp:

Namespaces

namespace  mb

Functions

MANTISBASE_API MbIntPrecision mb::defaultIntPrecision ()
MANTISBASE_API bool mb::isUnsignedIntPrecision (MbIntPrecision precision)
MANTISBASE_API std::string mb::intPrecisionToString (MbIntPrecision precision)
MANTISBASE_API MbIntPrecision mb::intPrecisionFromString (const std::string &token)
MANTISBASE_API MbIntPrecision mb::intPrecisionFromField (const nlohmann::json &field)
MANTISBASE_API soci::db_type mb::intPrecisionToSociType (MbIntPrecision precision)
MANTISBASE_API std::pair< int64_t, int64_t > mb::intPrecisionSignedRange (MbIntPrecision precision)
MANTISBASE_API std::pair< uint64_t, uint64_t > mb::intPrecisionUnsignedRange (MbIntPrecision precision)
MANTISBASE_API std::optional< std::string > mb::validateIntPrecisionToken (const std::string &token)
MANTISBASE_API std::optional< std::string > mb::validateIntFieldValue (const nlohmann::json &value, MbIntPrecision precision)
MANTISBASE_API std::optional< std::string > mb::validateIntConstraintBounds (const nlohmann::json &field)
MANTISBASE_API void mb::bindIntFieldValue (soci::values &vals, const std::string &field_name, const nlohmann::json &value, MbIntPrecision precision)
MANTISBASE_API nlohmann::json mb::readIntFieldValue (const soci::row &row, size_t index, MbIntPrecision precision)