Joedb 10.0.1
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 pack(Arguments &arguments)
21 ////////////////////////////////////////////////////////////////////////////
22 {
23 return process_journal_pair(arguments, joedb::process);
24 }
25}
26
27/////////////////////////////////////////////////////////////////////////////
28int main(int argc, char **argv)
29/////////////////////////////////////////////////////////////////////////////
30{
31 return joedb::main_wrapper(joedb::pack, argc, argv);
32}
int main()
int main_wrapper(int(*main)(Arguments &), int argc, char **argv)
Process command-line arguments and catch exceptions from main.
void pack(Readonly_Journal &input_journal, Writable &writable)
Definition dump.cpp:211
int process_journal_pair(Arguments &arguments, void(*process)(Readonly_Journal &, Writable_Journal &, int64_t checkpoint))
Definition Blob.h:7