12 Generator(
".",
"Readonly_Client.h", options)
23#include "Database_Writable.h"
24#include "joedb/concurrency/Readonly_Client.h"
32 class Readonly_Client: private joedb::Connection, public joedb::Readonly_Client
36 int64_t schema_checkpoint;
39 virtual void read_journal() override
41 Readonly_Journal::play_until_checkpoint(db);
42 if (db.get_schema_checkpoint() > schema_checkpoint)
43 Database::throw_exception("Pulled a schema change");
47 Readonly_Client(joedb::Buffered_File &file):
48 joedb::Readonly_Client
51 *static_cast<joedb::Connection *>(this),
52 joedb::Content_Check::none
55 db.initialize_with_readonly_journal(*this);
56 schema_checkpoint = db.get_schema_checkpoint();
59 using joedb::Readonly_Client::pull;
61 const Database &get_database() const {return db;}
const std::vector< std::string > & get_name_space() const
const Compiler_Options & options
Readonly_Client_h(const Compiler_Options &options)
void namespace_open(std::ostream &out, const std::vector< std::string > &n)
void namespace_close(std::ostream &out, const std::vector< std::string > &n)
void namespace_include_guard(std::ostream &out, const char *name, const std::vector< std::string > &n)
One code generator for each of the file generated by joedbc.