Joedb 10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readonly_Database_Client.h
Go to the documentation of this file.
1#ifndef joedb_Readonly_Database_Client_declared
2#define joedb_Readonly_Database_Client_declared
3
6
7namespace joedb
8{
9 /// @ingroup concurrency
11 {
12 private:
13 Database database;
14
15 protected:
16 void read_journal() override
17 {
19 }
20
21 public:
23 (
26 Content_Check content_check = Content_Check::fast,
27 Recovery recovery = Recovery::none
28 ):
29 Readonly_Client(file, connection, content_check, recovery)
30 {
32 }
33
34 const Database &get_database() const
35 {
36 return database;
37 }
38 };
39}
40
41#endif
Connection & connection
Definition Client.h:16
Specialized client for read-only files.
Readonly_Database_Client(Buffered_File &file, Connection &connection, Content_Check content_check=Content_Check::fast, Recovery recovery=Recovery::none)
void play_until_checkpoint(Writable &writable)
Content_Check
Definition Connection.h:19
@ none
default: fail if file size > checkpoint
Definition Blob.h:7