MantisBase v0.4.9
Loading...
Searching...
No Matches
soci_wrappers.h File Reference

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"
Include dependency graph for soci_wrappers.h:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

SOCI database wrapper utilities.

Provides conversion functions between JSON objects and SOCI database value types for seamless data binding and retrieval.