Handle concurrent access to a joedb::Buffered_File using a joedb::Connection.
More...
#include <tutorial/Client.h>
Definition at line 42 of file Client.h.
◆ Client()
◆ get_database()
const Database & tutorial::Client::get_database |
( |
| ) |
const |
|
inline |
◆ read_journal()
void tutorial::Client::read_journal |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ transaction()
template<typename F >
void tutorial::Client::transaction |
( |
F |
transaction | ) |
|
|
inline |
This function can be called with a lambda like this:
{
});
A writable Database constructed from a writable joedb::Buffered_File.
void write_comment(const std::string &comment)
The transaction function locks and pulls the connection before executing the lambda, pushes and unlocks it after.
Definition at line 103 of file Client.h.
◆ Client_Lock
The documentation for this class was generated from the following file:
- /home/rcoulom/repos/joedb/doc/source/tutorial/src/tutorial/Client.h