12#ifndef settings_Readonly_Client_declared
13#define settings_Readonly_Client_declared
23 class Readonly_Client_Data
30 Readonly_Client_Data(
joedb::File &file): journal(file)
32 db.initialize_with_readonly_journal(journal);
39 private detail::Readonly_Client_Data,
43 const int64_t schema_checkpoint;
48 journal.play_until_checkpoint(db);
49 if (db.get_schema_checkpoint() > schema_checkpoint)
55 detail::Readonly_Client_Data(file),
59 Readonly_Client_Data::connection,
62 schema_checkpoint(db.get_schema_checkpoint())
Handle concurrent access to a file with a joedb::Connection.
Handle concurrent access to a joedb::Buffered_File using a joedb::Connection.
Store all the tables of the database.
static void throw_exception(const std::string &message)
Client for a read-only file (allows pulling, unlike Readonly_Database)
const Database & get_database() const
virtual void read_journal() override
Readonly_Client(joedb::File &file)
Automatically generated by joedbc.