![]() |
MantisBase v0.4.9
|
SOCI database wrapper utilities. More...
#include "utils.h"#include "../mantisbase.h"#include "mantisbase/core/models/entity_schema_field.h"#include "mantisbase/core/models/int_precision.h"#include "soci/values.h"

Go to the source code of this file.
Namespaces | |
| namespace | mb |
Functions | |
| MANTISBASE_API soci::values | mb::json2SociValue (const json &entity, const json &fields) |
| Bind a JSON entity payload to SOCI values using field metadata. | |
| MANTISBASE_API MbIntPrecision | mb::getColumnIntPrecision (const std::string &column_name, const std::vector< json > &fields) |
| MANTISBASE_API std::string | mb::getColumnType (const std::string &column_name, const std::vector< json > &fields) |
| MANTISBASE_API json | mb::sociRow2Json (const std::string &db_type, const soci::row &row, const std::vector< json > &entity_fields) |
| Convert a SOCI result row to JSON using entity field metadata. | |
SOCI database wrapper utilities.
Provides conversion functions between JSON objects and SOCI database value types for seamless data binding and retrieval.