Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readonly_Journal_Client.h
Go to the documentation of this file.
1#ifndef joedb_Readonly_Journal_Client_declared
2#define joedb_Readonly_Journal_Client_declared
3
5
6namespace joedb
7{
8 namespace detail
9 {
10 class Readonly_Journal_Client_Data
11 {
12 protected:
13 Readonly_Journal journal;
14
15 public:
16 Readonly_Journal_Client_Data(Buffered_File &file): journal(file) {}
17 };
18 }
19
20 /// @ingroup concurrency
22 protected detail::Readonly_Journal_Client_Data,
23 public Client
24 {
26
27 protected:
28 void read_journal() override {journal.seek_to_checkpoint();}
29
30 public:
32 (
33 Buffered_File &file,
34 Connection &connection,
35 bool content_check = true
36 ):
37 Readonly_Journal_Client_Data(file),
38 Client(journal, connection, content_check)
39 {
41 }
42 };
43}
44
45#endif
Handle concurrent access to a file with a joedb::Connection.
Definition Client.h:12
Readonly_Journal_Client(Buffered_File &file, Connection &connection, bool content_check=true)
Definition Blob.h:7