|
Joedb 10.3.0
The Journal-Only Embedded Database
|
user interface, including all interactive command-line tools More...
Macros | |
| #define | PRIMITIVE_IO(type, type_id) |
Enumerations | |
| enum | joedb::JSON_Error { joedb::ok = 0 , joedb::utf8 = 1 , joedb::infnan = 2 } |
Functions | |
| std::string | joedb::base64_encode (const std::string &input) |
| std::string | joedb::base64_decode (const std::string &input) |
| void | joedb::dump (const Readable &db, Writable &writable, bool schema_only=false) |
| void | joedb::dump_data (const Readable &db, Writable &writable) |
| void | joedb::pack (Readonly_Journal &input_journal, Writable &writable) |
| std::string | joedb::get_time_string (int64_t timestamp) |
| std::string | joedb::get_time_string_of_now () |
| void | joedb::inplace_pack (const std::string &file_name) |
| int | joedb::write_json (std::ostream &out, const Readable &db, bool base64) |
| int | joedb::write_json_string (std::ostream &out, const std::string &s, bool base64) |
| int | joedb::main_wrapper (int(*main)(Arguments &), int argc, char **argv) |
| Process command-line arguments and catch exceptions from main. | |
| void | joedb::merge (Database &merged, const Database &db) |
| int | joedb::process_journal_pair (Arguments &arguments, void(*process)(Readonly_Journal &, Writable_Journal &, int64_t checkpoint)) |
| std::string | joedb::read_string (std::istream &in) |
| void | joedb::write_string (std::ostream &out, const std::string &s, bool json) |
| void | joedb::write_sql_string (std::ostream &out, const std::string &s) |
| size_t | joedb::utf8_display_size (const std::string &s) |
| uint32_t | joedb::read_utf8_char (size_t &i, const std::string &s) |
| void | joedb::write_justified (std::ostream &out, const std::string &s, size_t width, bool flush_left) |
| char | joedb::get_hex_char_from_digit (uint8_t n) |
| uint8_t | joedb::get_hex_digit_from_char (char c) |
| void | joedb::write_hexa_character (std::ostream &out, uint8_t c) |
| void | joedb::write_octal_character (std::ostream &out, uint8_t c) |
| int8_t | joedb::read_int8 (std::istream &in) |
| void | joedb::write_int8 (std::ostream &out, int8_t value) |
| bool | joedb::read_boolean (std::istream &in) |
| void | joedb::write_boolean (std::ostream &out, bool value) |
| void | joedb::write_blob (std::ostream &out, Blob blob) |
| Blob | joedb::read_blob (std::istream &in) |
| std::ostream & | joedb::operator<< (std::ostream &out, Table_Id table_id) |
| std::ostream & | joedb::operator<< (std::ostream &out, Field_Id field_id) |
| std::ostream & | joedb::operator<< (std::ostream &out, Record_Id record_id) |
| std::istream & | joedb::operator>> (std::istream &in, Table_Id &table_id) |
| std::istream & | joedb::operator>> (std::istream &in, Field_Id &field_id) |
| std::istream & | joedb::operator>> (std::istream &in, Record_Id &record_id) |
| int32_t | joedb::read_int32 (std::istream &in) |
| void | joedb::write_int32 (std::ostream &out, int32_t value) |
| int64_t | joedb::read_int64 (std::istream &in) |
| void | joedb::write_int64 (std::ostream &out, int64_t value) |
| Record_Id | joedb::read_reference (std::istream &in) |
| void | joedb::write_reference (std::ostream &out, Record_Id value) |
| float | joedb::read_float32 (std::istream &in) |
| void | joedb::write_float32 (std::ostream &out, float value) |
| double | joedb::read_float64 (std::istream &in) |
| void | joedb::write_float64 (std::ostream &out, double value) |
| int16_t | joedb::read_int16 (std::istream &in) |
| void | joedb::write_int16 (std::ostream &out, int16_t value) |
| void | joedb::write_value (std::ostream &out, const Readable &readable, Table_Id table_id, Record_Id record_id, Field_Id field_id) |
Variables | |
| const std::array< const char *, size_t(Open_Mode::mode_count)> | joedb::open_mode_strings |
| #define PRIMITIVE_IO | ( | type, | |
| type_id | |||
| ) |
| enum joedb::JSON_Error |
| std::string joedb::base64_decode | ( | const std::string & | input | ) |
Definition at line 59 of file base64_decode.cpp.
| std::string joedb::base64_encode | ( | const std::string & | input | ) |
Definition at line 11 of file base64.cpp.
| char joedb::get_hex_char_from_digit | ( | uint8_t | n | ) |
Definition at line 7 of file minimal_runtime_io.cpp.
| uint8_t joedb::get_hex_digit_from_char | ( | char | c | ) |
Definition at line 68 of file type_io.cpp.
| std::string joedb::get_time_string | ( | int64_t | timestamp | ) |
Definition at line 8 of file get_time_string.cpp.
| std::string joedb::get_time_string_of_now | ( | ) |
Definition at line 26 of file get_time_string.cpp.
| void joedb::inplace_pack | ( | const std::string & | file_name | ) |
Definition at line 10 of file inplace_pack.cpp.
| int joedb::main_wrapper | ( | int(*)(Arguments &) | main, |
| int | argc, | ||
| char ** | argv | ||
| ) |
This function is particularly necessary in Windows, because no exception information is printed when main throws.
Definition at line 13 of file main_wrapper.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void joedb::pack | ( | Readonly_Journal & | input_journal, |
| Writable & | writable | ||
| ) |
| int joedb::process_journal_pair | ( | Arguments & | arguments, |
| void(*)(Readonly_Journal &, Writable_Journal &, int64_t checkpoint) | process | ||
| ) |
Definition at line 9 of file process_journal_pair.cpp.
| Blob joedb::read_blob | ( | std::istream & | in | ) |
Definition at line 250 of file type_io.cpp.
| bool joedb::read_boolean | ( | std::istream & | in | ) |
Definition at line 215 of file type_io.cpp.
| int8_t joedb::read_int8 | ( | std::istream & | in | ) |
Definition at line 206 of file type_io.cpp.
|
inline |
| std::string joedb::read_string | ( | std::istream & | in | ) |
Definition at line 12 of file type_io.cpp.
| uint32_t joedb::read_utf8_char | ( | size_t & | i, |
| const std::string & | s | ||
| ) |
Definition at line 121 of file type_io.cpp.
| size_t joedb::utf8_display_size | ( | const std::string & | s | ) |
Definition at line 104 of file type_io.cpp.
| void joedb::write_blob | ( | std::ostream & | out, |
| Blob | blob | ||
| ) |
Definition at line 243 of file type_io.cpp.
| void joedb::write_boolean | ( | std::ostream & | out, |
| bool | value | ||
| ) |
Definition at line 233 of file type_io.cpp.
|
inline |
|
inline |
| void joedb::write_hexa_character | ( | std::ostream & | out, |
| uint8_t | c | ||
| ) |
Definition at line 80 of file type_io.cpp.
|
inline |
|
inline |
|
inline |
| void joedb::write_int8 | ( | std::ostream & | out, |
| int8_t | value | ||
| ) |
Definition at line 122 of file minimal_runtime_io.cpp.
| int joedb::write_json | ( | std::ostream & | out, |
| const Readable & | db, | ||
| bool | base64 | ||
| ) |
| int joedb::write_json_string | ( | std::ostream & | out, |
| const std::string & | s, | ||
| bool | base64 | ||
| ) |
| void joedb::write_justified | ( | std::ostream & | out, |
| const std::string & | s, | ||
| size_t | width, | ||
| bool | flush_left | ||
| ) |
Definition at line 159 of file type_io.cpp.
| void joedb::write_octal_character | ( | std::ostream & | out, |
| uint8_t | c | ||
| ) |
Definition at line 19 of file minimal_runtime_io.cpp.
|
inline |
| void joedb::write_sql_string | ( | std::ostream & | out, |
| const std::string & | s | ||
| ) |
Definition at line 90 of file type_io.cpp.
| void joedb::write_string | ( | std::ostream & | out, |
| const std::string & | s, | ||
| bool | json | ||
| ) |
Definition at line 39 of file minimal_runtime_io.cpp.
| void joedb::write_value | ( | std::ostream & | out, |
| const Readable & | readable, | ||
| Table_Id | table_id, | ||
| Record_Id | record_id, | ||
| Field_Id | field_id | ||
| ) |
Definition at line 8 of file write_value.cpp.
| const std::array< const char *, size_t(Open_Mode::mode_count)> joedb::open_mode_strings |
Definition at line 5 of file open_mode_strings.cpp.