Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Writable.cpp
Go to the documentation of this file.
1#include "joedb/Writable.h"
2
3namespace joedb
4{
5 #define TYPE_MACRO(type, return_type, type_id, R, W)\
6 void Writable::update_vector_##type_id\
7 (\
8 Table_Id table_id,\
9 Record_Id record_id,\
10 Field_Id field_id,\
11 size_t size,\
12 const type *value\
13 )\
14 {\
15 for (size_t i = 0; i < size; i++)\
16 update_##type_id(table_id, record_id + i, field_id, value[i]);\
17 }
18 #include "joedb/TYPE_MACRO.h"
19
20 #define TYPE_MACRO(type, return_type, type_id, R, W)\
21 void Writable::update_##type_id\
22 (\
23 Table_Id table_id,\
24 Record_Id record_id,\
25 Field_Id field_id,\
26 return_type value\
27 )\
28 {\
29 }
30 #include "joedb/TYPE_MACRO.h"
31
33 {
34 checkpoint(default_commit_level);
35 }
36}
virtual void checkpoint(Commit_Level commit_level)
Definition Writable.h:55
void default_checkpoint()
Definition Writable.cpp:32
Definition Blob.h:7