Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readonly_Database.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/doc/source/tutorial/build/joedbc
7// Version: 9.1.4
8// joedbc compilation time: Apr 15 2025 14:46:29
9// Generation of this file: 2025-04-15 12:46:31 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef settings_Readonly_Database_declared
13#define settings_Readonly_Database_declared
14
15#include "Database.h"
16#include "joedb/journal/File.h"
17
18namespace settings
19{
20 /// Load a database from a read-only file
22 {
23 public:
28
33
35 Readonly_Database(joedb::Readonly_Journal(file))
36 {
37 }
38
43
44 Readonly_Database(const char *file_name):
46 (
47 joedb::File(file_name, joedb::Open_Mode::read_existing)
48 )
49 {
50 }
51
52 Readonly_Database(const std::string &file_name):
53 Readonly_Database(file_name.c_str())
54 {
55 }
56 };
57}
58
59#endif
Store all the tables of the database.
Definition Database.h:76
void initialize_with_readonly_journal(joedb::Readonly_Journal &journal)
Definition Database.h:478
Load a database from a read-only file.
Readonly_Database(const char *file_name)
Readonly_Database(joedb::Buffered_File &file)
Readonly_Database(const std::string &file_name)
Readonly_Database(joedb::Buffered_File &&file)
Readonly_Database(joedb::Readonly_Journal &journal)
Readonly_Database(joedb::Readonly_Journal &&journal)
Definition Blob.h:7
Automatically generated by joedbc.
Definition Client.h:19