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

Go to the source code of this file.

Namespaces

namespace  joedb

Macros

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

Functions

void joedb::dump (const Readable &db, Writable &writable, bool schema_only)
void joedb::dump_data (const Readable &db, Writable &writable)
void joedb::pack (Readonly_Journal &input_journal, Writable &writable)

Macro Definition Documentation

◆ TYPE_MACRO [1/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
R,
W )
Value:
case Type::Type_Id::type_id:\
{\
const type &value = db.get_##type_id(tid, record_id, fid);\
if (size > 1)\
writable.update_vector_##type_id(tid, record_id, fid, size, &value);\
else\
writable.update_##type_id(tid, record_id, fid, value);\
}\
break;

◆ TYPE_MACRO [2/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
R,
W )
Value:
case Type::Type_Id::type_id:\
writable.update_##type_id\
(\
mapped_tid, record_id, mapped_fid, db.get_##type_id(tid, record_id, fid)\
);\
break;