Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Data_Manipulation_Command_Processor.cpp File Reference
Include dependency graph for Data_Manipulation_Command_Processor.cpp:

Go to the source code of this file.

Namespaces

namespace  joedb

Macros

#define TYPE_MACRO(type, return_type, type_id, read_method, write_method)
#define TYPE_MACRO(type, return_type, type_id, R, W)

Macro Definition Documentation

◆ TYPE_MACRO [1/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
R,
W )
Value:
case Type::Type_Id::type_id:\
{\
std::vector<type> v(size);\
for (size_t i = 0; i < size; i++)\
v[i] = joedb::read_##type_id(parameters);\
writable.update_vector_##type_id(table_id, record_id, field_id, size, v.data());\
}\
break;

◆ TYPE_MACRO [2/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
read_method,
write_method )
Value:
case Type::Type_Id::type_id:\
{\
const type value = joedb::read_##type_id(in);\
writable.update_##type_id(table_id, record_id, field_id, value);\
}\
break;