12#ifndef tutorial_Readonly_Client_declared
13#define tutorial_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;
49 if (db.get_schema_checkpoint() > schema_checkpoint)
55 detail::Readonly_Client_Data(file),
60 joedb::Content_Check::none
62 schema_checkpoint(db.get_schema_checkpoint())
Readonly_Journal & journal
Specialized client for read-only files.
void play_until_checkpoint(Writable &writable)
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)
virtual void read_journal() override
const Database & get_database() const
Readonly_Client(joedb::File &file)
Automatically generated by joedbc.