Joedb 9.1.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
tutorial::Readonly_Client Class Reference

Client for a read-only file (allows pulling, unlike Readonly_Database) More...

#include <tutorial/Readonly_Client.h>

Inheritance diagram for tutorial::Readonly_Client:
Inheritance graph
[legend]
Collaboration diagram for tutorial::Readonly_Client:
Collaboration graph
[legend]

Public Member Functions

 Readonly_Client (joedb::File &file)
 
const Databaseget_database () const
 
- Public Member Functions inherited from joedb::Client
 Client (Readonly_Journal &journal, Connection &connection, bool content_check=true)
 
bool is_readonly () const
 
const Readonly_Journalget_journal () const
 
int64_t get_checkpoint () const
 
std::string read_blob_data (Blob blob) const
 
int64_t get_server_checkpoint () const
 
int64_t get_checkpoint_difference () const
 
int64_t pull (std::chrono::milliseconds wait=std::chrono::milliseconds(0))
 
void push_unlock ()
 
virtual ~Client ()
 

Protected Member Functions

virtual void read_journal () override
 
- Protected Member Functions inherited from joedb::Client
template<typename F >
void transaction (F transaction)
 

Detailed Description

Definition at line 38 of file Readonly_Client.h.

Constructor & Destructor Documentation

◆ Readonly_Client()

tutorial::Readonly_Client::Readonly_Client ( joedb::File file)
inline

Definition at line 54 of file Readonly_Client.h.

Member Function Documentation

◆ get_database()

const Database & tutorial::Readonly_Client::get_database ( ) const
inline

Definition at line 66 of file Readonly_Client.h.

◆ read_journal()

virtual void tutorial::Readonly_Client::read_journal ( )
inlineoverrideprotectedvirtual

Implements joedb::Client.

Definition at line 46 of file Readonly_Client.h.


The documentation for this class was generated from the following file: