12#ifndef tutorial_File_Database_declared
13#define tutorial_File_Database_declared
22 class File_Database_Data
36 protected detail::File_Database_Data,
42 const char *file_name,
46 File_Database_Data(file_name, mode),
53 const std::string &file_name,
Shortcut to directly build a Writable_Database from a file name.
File_Database(const std::string &file_name, joedb::Open_Mode mode=joedb::Open_Mode::write_existing_or_create_new, joedb::Recovery recovery=joedb::Recovery::none)
File_Database(const char *file_name, joedb::Open_Mode mode=joedb::Open_Mode::write_existing_or_create_new, joedb::Recovery recovery=joedb::Recovery::none)
A Database that contains a joedb::Writable_Journal and keeps them in sync.
@ write_existing_or_create_new
either write_existing or create_new depending on whether the file exists. Racy in Posix,...
@ none
default: fail if file size > checkpoint
Automatically generated by joedbc.