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

Shortcut to directly build a Client from a file name. More...

#include <tutorial/File_Client.h>

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

Public Member Functions

 File_Client (const char *file_name)
 
 File_Client (const std::string &file_name)
 
- Public Member Functions inherited from tutorial::Client
 Client (joedb::Buffered_File &file, joedb::Connection &connection, joedb::Content_Check content_check=joedb::Content_Check::quick)
 
const Databaseget_database () const
 
template<typename F >
auto transaction (F transaction)
 Execute a write transaction.
 
- Public Member Functions inherited from joedb::Writable_Client
 Writable_Client (Writable_Journal &journal, Connection &connection, Content_Check content_check=Content_Check::quick)
 
void set_valid_data (bool b)
 Automatically write valid_data at every checkpoint (default = false)
 
void set_timestamp (bool b)
 Automatically write time stamp at every checkpoint (default = false)
 
void set_hard_checkpoint (bool b)
 Use hard checkpoints (default = false)
 
int64_t pull (std::chrono::milliseconds wait=std::chrono::milliseconds(0)) override
 
void pull_push ()
 
int64_t push_unlock ()
 
int64_t push () override
 
- Public Member Functions inherited from joedb::Client
 Client (Readonly_Journal &journal, Connection &connection, Content_Check content_check)
 
const Readonly_Journalget_journal () const
 
bool is_shared () const
 
int64_t get_journal_checkpoint () const
 
std::string read_blob (Blob blob) const
 
int64_t get_connection_checkpoint () const
 
int64_t get_checkpoint_difference () const
 
virtual ~Client ()
 

Additional Inherited Members

- Protected Member Functions inherited from tutorial::Client
void read_journal () override
 
- Protected Member Functions inherited from joedb::Writable_Client
template<typename F >
auto transaction (F transaction)
 
- Protected Member Functions inherited from joedb::Client
int64_t push (Unlock_Action unlock_action)
 
- Protected Attributes inherited from joedb::Client
Readonly_Journaljournal
 
Connectionconnection
 
int64_t connection_checkpoint
 

Detailed Description

Definition at line 38 of file File_Client.h.

Constructor & Destructor Documentation

◆ File_Client() [1/2]

tutorial::File_Client::File_Client ( const char *  file_name)
inline

Definition at line 41 of file File_Client.h.

◆ File_Client() [2/2]

tutorial::File_Client::File_Client ( const std::string &  file_name)
inline

Definition at line 47 of file File_Client.h.


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