1#ifndef joedb_Readonly_Client_declared
2#define joedb_Readonly_Client_declared
34 std::chrono::milliseconds wait = std::chrono::milliseconds(0)
Handle concurrent access to a file with a joedb::Connection.
virtual void read_journal()
int64_t push(Unlock_Action unlock_action)
int64_t get_connection_checkpoint() const
virtual void unlock()
Unlock the connection.
Specialized client for read-only files.
Readonly_Client(Buffered_File &file, Connection &connection, Content_Check content_check=Content_Check::fast, Recovery recovery=Recovery::none)
int64_t pull(std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override
~Readonly_Client() override
int64_t push_if_ahead() override
int64_t get_checkpoint() const
@ none
default: fail if file size > checkpoint