MySQL 9.1.0
Source Code Documentation
Function Templates for Composite Types

Defines function templates to handle types that do not map directly to a rapidjson type, and require some amount of converson/adaptation. More...

Collaboration diagram for Function Templates for Composite Types:

Functions

template<typename W , typename ENUM_T >
void write_enum (W *w, ENUM_T enum_val, const char *key, size_t keysz)
 
template<typename ENUM_T , typename GV >
bool read_enum (ENUM_T *ep, const GV &gv, const char *key)
 
template<typename W >
void write_binary (dd::Sdi_wcontext *wctx, W *w, const binary_t &b, const char *key, size_t keysz)
 
template<typename GV >
bool read_binary (dd::Sdi_rcontext *rctx, binary_t *b, const GV &gv, const char *key)
 
template<typename W , typename PP >
void write_properties (W *w, const PP &p, const char *key, size_t keysz)
 
template<typename PP , typename GV >
bool read_properties (PP *p, const GV &gv, const char *key)
 
template<typename W , typename PP >
void write_opx_reference (W *w, const PP &p, const char *key, size_t keysz)
 
template<typename PP , typename GV >
bool read_opx_reference (dd::Sdi_rcontext *rctx, PP *p, const GV &gv, const char *key)
 
template<typename GV >
bool deserialize_schema_ref (dd::Sdi_rcontext *rctx, dd::Object_id *p, const GV &gv, const char *key)
 
template<typename W >
void serialize_tablespace_ref (dd::Sdi_wcontext *wctx, W *w, dd::Object_id tablespace_id, const char *key, size_t keysz)
 
template<typename GV >
bool deserialize_tablespace_ref (dd::Sdi_rcontext *rctx, dd::Object_id *p, const GV &gv, const char *key)
 
template<typename W , typename C >
void serialize_each (dd::Sdi_wcontext *wctx, W *w, const dd::Collection< C * > &cp, const char *key, size_t keysz)
 
template<typename ADD_BINDER , typename GV >
bool deserialize_each (dd::Sdi_rcontext *rctx, ADD_BINDER add_binder, const GV &obj_gv, const char *key)
 

Detailed Description

Defines function templates to handle types that do not map directly to a rapidjson type, and require some amount of converson/adaptation.

Function Documentation

◆ deserialize_each()

template<typename ADD_BINDER , typename GV >
bool deserialize_each ( dd::Sdi_rcontext rctx,
ADD_BINDER  add_binder,
const GV &  obj_gv,
const char *  key 
)

◆ deserialize_schema_ref()

template<typename GV >
bool deserialize_schema_ref ( dd::Sdi_rcontext rctx,
dd::Object_id p,
const GV &  gv,
const char *  key 
)

◆ deserialize_tablespace_ref()

template<typename GV >
bool deserialize_tablespace_ref ( dd::Sdi_rcontext rctx,
dd::Object_id p,
const GV &  gv,
const char *  key 
)

◆ read_binary()

template<typename GV >
bool read_binary ( dd::Sdi_rcontext rctx,
binary_t b,
const GV &  gv,
const char *  key 
)

◆ read_enum()

template<typename ENUM_T , typename GV >
bool read_enum ( ENUM_T *  ep,
const GV &  gv,
const char *  key 
)

◆ read_opx_reference()

template<typename PP , typename GV >
bool read_opx_reference ( dd::Sdi_rcontext rctx,
PP *  p,
const GV &  gv,
const char *  key 
)

◆ read_properties()

template<typename PP , typename GV >
bool read_properties ( PP *  p,
const GV &  gv,
const char *  key 
)

◆ serialize_each()

template<typename W , typename C >
void serialize_each ( dd::Sdi_wcontext wctx,
W *  w,
const dd::Collection< C * > &  cp,
const char *  key,
size_t  keysz 
)

◆ serialize_tablespace_ref()

template<typename W >
void serialize_tablespace_ref ( dd::Sdi_wcontext wctx,
W *  w,
dd::Object_id  tablespace_id,
const char *  key,
size_t  keysz 
)

◆ write_binary()

template<typename W >
void write_binary ( dd::Sdi_wcontext wctx,
W *  w,
const binary_t b,
const char *  key,
size_t  keysz 
)

◆ write_enum()

template<typename W , typename ENUM_T >
void write_enum ( W *  w,
ENUM_T  enum_val,
const char *  key,
size_t  keysz 
)

◆ write_opx_reference()

template<typename W , typename PP >
void write_opx_reference ( W *  w,
const PP &  p,
const char *  key,
size_t  keysz 
)

◆ write_properties()

template<typename W , typename PP >
void write_properties ( W *  w,
const PP &  p,
const char *  key,
size_t  keysz 
)