Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readonly_Interpreted_File.cpp
Go to the documentation of this file.
2#include "joedb/Multiplexer.h"
4
5namespace joedb
6{
7 ////////////////////////////////////////////////////////////////////////////
9 ////////////////////////////////////////////////////////////////////////////
10 (
11 std::istream &stream,
12 bool readonly
13 ):
14 journal(*this)
15 {
16 stream.exceptions(std::ios::badbit);
17
18 Multiplexer multiplexer{db, journal};
19 Interpreter interpreter(db, multiplexer, nullptr, multiplexer, 0);
20 interpreter.set_echo(false);
21 interpreter.set_rethrow(true);
22 {
23 std::ofstream null_stream;
24 interpreter.main_loop(stream, null_stream);
25 }
27
28 if (readonly)
30 }
31
32 ////////////////////////////////////////////////////////////////////////////
34 ////////////////////////////////////////////////////////////////////////////
35}
Readonly_Interpreted_File(std::istream &stream, bool readonly)
void default_checkpoint()
Definition Writable.cpp:32
Definition Blob.h:7