Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb_pack.cpp
Go to the documentation of this file.
1#include "joedb/ui/dump.h"
4
5namespace joedb
6{
7 ////////////////////////////////////////////////////////////////////////////
8 static void process
9 ////////////////////////////////////////////////////////////////////////////
10 (
11 Readonly_Journal &input,
12 Writable_Journal &output,
13 int64_t checkpoint
14 )
15 {
16 pack(input, output);
17 }
18
19 ////////////////////////////////////////////////////////////////////////////
20 static int main(int argc, char **argv)
21 ////////////////////////////////////////////////////////////////////////////
22 {
23 return process_journal_pair(argc, argv, joedb::process);
24 }
25}
26
27/////////////////////////////////////////////////////////////////////////////
28int main(int argc, char **argv)
29/////////////////////////////////////////////////////////////////////////////
30{
31 return joedb::main_exception_catcher(joedb::main, argc, argv);
32}
int main()
int main_exception_catcher(int(*main)(int, char **), int argc, char **argv)
Catch exception from main.
int process_journal_pair(int argc, char **argv, void(*process)(Readonly_Journal &, Writable_Journal &, int64_t checkpoint))
void pack(Readonly_Journal &input_journal, Writable &writable)
Definition dump.cpp:220
Definition Blob.h:7