Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
Journal

Files, and joedb file format. More...

Classes

class  joedb::Abstract_File
 
class  joedb::Async_Reader
 
class  joedb::Async_Writer
 
class  joedb::Brotli_Codec
 
class  joedb::Brotli_Decoder
 
class  joedb::Brotli_File
 
class  joedb::Buffer< log_size >
 
class  joedb::Buffered_File
 
class  joedb::Codec
 
class  joedb::CURL_File
 
class  joedb::Decoder
 
class  joedb::Encoded_File
 
class  joedb::File_Hasher
 
class  joedb::Journal_Hasher
 
class  joedb::File_Slice
 
class  joedb::Identity_Codec
 
class  joedb::Interpreted_File
 
class  joedb::Journal_Construction_Lock
 
class  joedb::Memory_File
 
class  joedb::Portable_File
 
class  joedb::Posix_File
 
class  joedb::Readonly_Brotli_File
 
class  joedb::Readonly_Encoded_File
 
class  joedb::Readonly_Interpreted_File
 
class  joedb::Readonly_Journal
 
class  joedb::Readonly_Memory_File
 
class  joedb::Sequential_File
 
class  joedb::SFTP_File
 
class  joedb::SHA_256
 
class  joedb::Stream_File
 
class  joedb::Upgradable_File< Parent >
 
class  joedb::Windows_File
 
class  joedb::Writable_Journal
 

Enumerations

enum class  joedb::Open_Mode {
  joedb::Open_Mode::read_existing , joedb::Open_Mode::write_existing , joedb::Open_Mode::create_new , joedb::Open_Mode::write_existing_or_create_new ,
  joedb::Open_Mode::shared_write , joedb::Open_Mode::write_lock , joedb::Open_Mode::mode_count
}
 

Functions

void joedb::dump_header (std::ostream &out, Buffered_File &file)
 
void joedb::about_joedb (std::ostream &out)
 

Detailed Description

Enumeration Type Documentation

◆ Open_Mode

enum class joedb::Open_Mode
strong
Enumerator
read_existing 

fails if does not exist

write_existing 

fails if does not exist or locked, locks the file for writing

create_new 

fails if already exists, locks the file for writing

write_existing_or_create_new 

either write_existing or create_new depending on whether the file exists. Racy in Posix, not in Windows.

shared_write 

like write_existing_or_create_new, but does not lock the file, and does not fail if locked

write_lock 

like write_existing_or_create_new, but waits instead of failing if already locked

mode_count 

number of modes

Definition at line 7 of file Open_Mode.h.

Function Documentation

◆ about_joedb()

void joedb::about_joedb ( std::ostream &  out)

Definition at line 65 of file diagnostics.cpp.

◆ dump_header()

void joedb::dump_header ( std::ostream &  out,
Buffered_File file 
)

Definition at line 30 of file diagnostics.cpp.