Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
File_Client.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2//
3// This code was automatically generated by the joedb compiler
4// https://www.joedb.org/
5//
6// Path to compiler: /home/rcoulom/repos/joedb/compcmake/gcc_debug/joedbc
7// Version: 10.2.1
8// joedbc compilation time: Sep 15 2025 20:22:33
9// Generation of this file: 2025-09-15 18:22:57 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef joedb_db_encoded_file_File_Client_declared
13#define joedb_db_encoded_file_File_Client_declared
14
15#include "Client.h"
16#include "joedb/journal/File.h"
17
19{
20 /// Shortcut to directly build a @ref Client from a file name
21 class File_Client: private joedb::File, public Client
22 {
23 public:
24 File_Client(const char *file_name):
25 joedb::File
26 (
27 file_name,
28 joedb::File::lockable
31 ),
32 Client(*this, joedb::Connection::dummy)
33 {
34 }
35
36 File_Client(const std::string &file_name):
37 File_Client(file_name.c_str())
38 {
39 }
40 };
41}
42
43#endif
Handle concurrent access to a joedb::Abstract_File using a joedb::Connection.
Definition Client.h:44
Shortcut to directly build a Client from a file name.
Definition File_Client.h:22
File_Client(const std::string &file_name)
Definition File_Client.h:36
File_Client(const char *file_name)
Definition File_Client.h:24
Open_Mode
Definition Open_Mode.h:8
@ shared_write
like write_existing_or_create_new, but does not lock the file, and does not fail if locked
@ write_existing_or_create_new
either write_existing or create_new depending on whether the file exists. Racy in Posix,...
Automatically generated by joedbc.
Definition Client.h:19
JOEDB_FILE File
Definition File.h:25