Joedb
10.4.6
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
source
tutorial
src
settings
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.4.6
8
// joedbc compilation time: Oct 15 2026 13:18:09
9
// Generation of this file: 2026-10-15 11:18:18 GMT
10
//
11
/////////////////////////////////////////////////////////////////////////////
12
#ifndef settings_File_Client_declared
13
#define settings_File_Client_declared
14
15
#include "
Client.h
"
16
#include "
joedb/journal/File.h
"
17
18
namespace
settings
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,
joedb::Recovery
recovery =
joedb::Recovery::none
):
25
joedb
::File
26
(
27
file_name,
28
joedb
::File::lockable
29
?
joedb
::Open_Mode::shared_write
30
:
joedb
::Open_Mode::write_existing_or_create_new
31
),
32
Client
(*this,
joedb
::Connection::dummy,
joedb
::Content_Check::none, recovery)
33
{
34
}
35
36
File_Client
(
const
std::string &file_name,
joedb::Recovery
recovery =
joedb::Recovery::none
):
37
File_Client
(file_name.c_str(), recovery)
38
{
39
}
40
};
41
}
42
43
#endif
File.h
settings::Client::Client
Client(joedb::Abstract_File &file, joedb::Connection &connection=joedb::Connection::dummy, joedb::Content_Check content_check=joedb::Content_Check::fast, joedb::Recovery recovery=joedb::Recovery::none)
Definition
Client.h:64
settings::File_Client::File_Client
File_Client(const char *file_name, joedb::Recovery recovery=joedb::Recovery::none)
Definition
File_Client.h:24
settings::File_Client::File_Client
File_Client(const std::string &file_name, joedb::Recovery recovery=joedb::Recovery::none)
Definition
File_Client.h:36
Client.h
joedb::Recovery
Recovery
Definition
Journal_Construction_Lock.h:11
joedb::Recovery::none
@ none
default: fail if file size > checkpoint
Definition
Journal_Construction_Lock.h:12
joedb
Definition
Server.cpp:10
joedb::File
JOEDB_FILE File
Definition
File.h:23
settings
Automatically generated by joedbc.
Definition
Client.h:19
Generated by
1.15.0