Joedb
10.0.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
db
encoded_file
Memory_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/compcmake/gcc_asan/joedbc
7
// Version: 10.0.2
8
// joedbc compilation time: Jun 10 2025 14:43:47
9
// Generation of this file: 2025-06-10 12:44:02 GMT
10
//
11
/////////////////////////////////////////////////////////////////////////////
12
#ifndef joedb_db_encoded_file_Memory_Database_declared
13
#define joedb_db_encoded_file_Memory_Database_declared
14
15
#include "
Writable_Database.h
"
16
#include "
joedb/journal/Memory_File.h
"
17
#include "
joedb/journal/File_View.h
"
18
19
namespace
joedb::db::encoded_file
20
{
21
/// Shortcut to directly build a @ref Writable_Database with a Memory_File
22
class
Memory_Database
:
private
joedb::Memory_File
,
public
Writable_Database
23
{
24
public
:
25
Memory_Database
():
Writable_Database
(*this,
joedb
::
Recovery
::
none
)
26
{
27
}
28
29
joedb::File_View
get_file_view
()
30
{
31
return
joedb::File_View
(*
this
);
32
}
33
34
void
pull
()
35
{
36
journal.pull();
37
play_journal();
38
}
39
};
40
}
41
42
#endif
File_View.h
Memory_File.h
joedb::File_View
Definition
File_View.h:10
joedb::Memory_File
Definition
Memory_File.h:12
joedb::db::encoded_file::Memory_Database
Shortcut to directly build a Writable_Database with a Memory_File.
Definition
Memory_Database.h:23
joedb::db::encoded_file::Memory_Database::get_file_view
joedb::File_View get_file_view()
Definition
Memory_Database.h:29
joedb::db::encoded_file::Memory_Database::Memory_Database
Memory_Database()
Definition
Memory_Database.h:25
joedb::db::encoded_file::Memory_Database::pull
void pull()
Definition
Memory_Database.h:34
joedb::db::encoded_file::Writable_Database
A Database that contains a joedb::Writable_Journal and keeps them in sync.
Definition
Writable_Database.h:30
joedb::Content_Check::none
@ none
joedb::Recovery
Recovery
Definition
Journal_Construction_Lock.h:10
joedb::db::encoded_file
Automatically generated by joedbc.
Definition
Client.h:19
joedb
Definition
Blob.h:7
Writable_Database.h
Generated by
1.9.8