9#ifndef MANTISBASE_INT_PRECISION_H
10#define MANTISBASE_INT_PRECISION_H
17#include "nlohmann/json.hpp"
18#include "soci/soci-backend.h"
19#include "soci/values.h"
#define MANTISBASE_API
Definition export.h:31
MANTISBASE_API bool isUnsignedIntPrecision(MbIntPrecision precision)
Definition int_precision.cpp:14
MANTISBASE_API soci::db_type intPrecisionToSociType(MbIntPrecision precision)
Definition int_precision.cpp:88
MANTISBASE_API std::pair< int64_t, int64_t > intPrecisionSignedRange(MbIntPrecision precision)
Definition int_precision.cpp:102
MANTISBASE_API std::optional< std::string > validateIntPrecisionToken(const std::string &token)
Definition int_precision.cpp:124
MANTISBASE_API MbIntPrecision intPrecisionFromString(const std::string &token)
Definition int_precision.cpp:40
MANTISBASE_API std::optional< std::string > validateIntFieldValue(const nlohmann::json &value, MbIntPrecision precision)
Definition int_precision.cpp:156
MANTISBASE_API void bindIntFieldValue(soci::values &vals, const std::string &field_name, const nlohmann::json &value, MbIntPrecision precision)
Definition int_precision.cpp:262
MANTISBASE_API std::string intPrecisionToString(MbIntPrecision precision)
Definition int_precision.cpp:26
MANTISBASE_API MbIntPrecision intPrecisionFromField(const nlohmann::json &field)
Definition int_precision.cpp:71
MbIntPrecision
Definition int_precision.h:24
@ U64
Definition int_precision.h:32
@ I8
Definition int_precision.h:25
@ U8
Definition int_precision.h:29
@ I16
Definition int_precision.h:26
@ U32
Definition int_precision.h:31
@ I32
Definition int_precision.h:27
@ I64
Definition int_precision.h:28
@ U16
Definition int_precision.h:30
MANTISBASE_API nlohmann::json readIntFieldValue(const soci::row &row, size_t index, MbIntPrecision precision)
Definition int_precision.cpp:304
MANTISBASE_API MbIntPrecision defaultIntPrecision()
Definition int_precision.cpp:10
MANTISBASE_API std::pair< uint64_t, uint64_t > intPrecisionUnsignedRange(MbIntPrecision precision)
Definition int_precision.cpp:113
MANTISBASE_API std::optional< std::string > validateIntConstraintBounds(const nlohmann::json &field)
Definition int_precision.cpp:189
Core type aliases, handler signatures, and the MbAppMixin DI mixin.