|
Joedb 9.4.0
The Journal-Only Embedded Database
|
Store all the tables of the database. More...
#include <joedb/db/multi_server/Database.h>


Public Member Functions | |
| void | set_max_record_id (size_t record_id) |
| bool | is_valid (id_of_server id) const |
| Database () | |
| int64_t | get_schema_checkpoint () const |
| void | initialize_with_readonly_journal (joedb::Readonly_Journal &journal) |
| container_of_server | get_server_table () const |
| id_of_server | next (id_of_server id) const |
| id_of_server | previous (id_of_server id) const |
| template<class Comparator > | |
| std::vector< id_of_server > | sorted_server (Comparator comparator) const |
| const std::string & | get_file_name (id_of_server record) const |
| int32_t | get_port (id_of_server record) const |
| int32_t | get_timeout (id_of_server record) const |
| const std::map< int32_t, id_of_server > & | get_index_of_server_by_port () |
| id_of_server | next_server_by_port (id_of_server id) |
| id_of_server | previous_server_by_port (id_of_server id) |
| id_of_server | find_server_by_port (int32_t field_value_of_port) const |
Public Member Functions inherited from joedb::Writable | |
| virtual int64_t | get_position () const |
| virtual void | start_writing (int64_t position) |
| virtual void | soft_checkpoint_at (int64_t position) |
| virtual void | hard_checkpoint_at (int64_t position) |
| void | soft_checkpoint () |
| void | hard_checkpoint () |
| virtual void | drop_table (Table_Id table_id) |
| virtual void | rename_table (Table_Id table_id, const std::string &name) |
| virtual void | add_field (Table_Id table_id, const std::string &name, Type type) |
| virtual void | drop_field (Table_Id table_id, Field_Id field_id) |
| virtual void | rename_field (Table_Id table_id, Field_Id field_id, const std::string &name) |
| virtual void | flush () |
| virtual void | insert_into (Table_Id table_id, Record_Id record_id) |
| virtual void | delete_from (Table_Id table_id, Record_Id record_id) |
| virtual void | insert_vector (Table_Id table_id, Record_Id record_id, size_t size) |
| virtual void | delete_vector (Table_Id table_id, Record_Id record_id, size_t size) |
| virtual void | on_blob (Blob blob) |
| virtual bool | wants_blob_data () const |
| virtual Blob | write_blob (const std::string &data) |
| virtual | ~Writable ()=default |
Static Public Member Functions | |
| template<typename E = joedb::Exception> | |
| static void | throw_exception (const std::string &message) |
| static id_of_server | null_server () |
Public Attributes | |
| size_t | max_record_id |
| Table_Id | current_table_id = Table_Id{0} |
Protected Member Functions | |
| bool | is_valid_record_id_for_server (Record_Id record_id) const |
| void | remove_index_of_server_by_port (Record_Id record_id) |
| void | add_index_of_server_by_port (Record_Id record_id) |
| void | internal_delete_server (Record_Id record_id) |
| void | internal_insert_server (Record_Id record_id) |
| void | internal_vector_insert_server (Record_Id record_id, size_t size) |
| void | internal_update_server__file_name (Record_Id record_id, const std::string &field_value_of_file_name) |
| void | internal_update_vector_server__file_name (Record_Id record_id, size_t size, const std::string *value) |
| void | internal_update_server__port (Record_Id record_id, int32_t field_value_of_port) |
| void | internal_update_vector_server__port (Record_Id record_id, size_t size, const int32_t *value) |
| void | internal_update_server__timeout (Record_Id record_id, int32_t field_value_of_timeout) |
| void | internal_update_vector_server__timeout (Record_Id record_id, size_t size, const int32_t *value) |
| void | delete_from (Table_Id table_id, Record_Id record_id) final |
| void | insert_into (Table_Id table_id, Record_Id record_id) final |
| void | insert_vector (Table_Id table_id, Record_Id record_id, size_t size) final |
| void | update_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, const std::string &value) final |
| void | update_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int32_t value) final |
| void | update_vector_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const std::string *value) final |
| void | update_vector_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int32_t *value) final |
| std::string * | get_own_string_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) final |
| int32_t * | get_own_int32_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) final |
| void | comment (const std::string &comment) override |
| void | timestamp (int64_t timestamp) override |
| void | valid_data () final |
| bool | requires_schema_upgrade () const |
| void | check_schema () |
| void | create_table (const std::string &name) override |
| void | drop_table (Table_Id table_id) final |
| void | rename_table (Table_Id table_id, const std::string &name) final |
| void | add_field (Table_Id table_id, const std::string &name, joedb::Type type) override |
| void | drop_field (Table_Id table_id, Field_Id field_id) final |
| void | rename_field (Table_Id table_id, Field_Id field_id, const std::string &name) final |
| void | custom (const std::string &name) override |
Protected Attributes | |
| detail::data_of_server | storage_of_server |
| std::map< int32_t, id_of_server > | index_of_server_by_port |
| bool | upgrading_schema = false |
| joedb::Memory_File | schema_file |
| joedb::Writable_Journal | schema_journal |
Friends | |
| class | Readable |
| class | id_of_server |
| class | container_of_server |
Definition at line 81 of file Database.h.
|
inline |
Definition at line 520 of file Database.h.
|
inlineoverrideprotected |
Definition at line 485 of file Database.h.
|
inlineprotected |
Definition at line 118 of file Database.h.
|
inlineprotected |
Definition at line 441 of file Database.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 428 of file Database.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 462 of file Database.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 513 of file Database.h.
|
inlinefinalprotected |
Definition at line 246 of file Database.h.
|
inlinefinalprotected |
Definition at line 496 of file Database.h.
|
inlinefinalprotected |
Definition at line 469 of file Database.h.
|
inline |
Definition at line 610 of file Database.h.
|
inline |
Definition at line 568 of file Database.h.
|
inline |
Definition at line 586 of file Database.h.
|
inlinefinalprotected |
Definition at line 403 of file Database.h.
|
inlinefinalprotected |
Definition at line 382 of file Database.h.
|
inline |
Definition at line 574 of file Database.h.
|
inline |
Definition at line 525 of file Database.h.
|
inline |
Definition at line 663 of file Database.h.
|
inline |
Definition at line 580 of file Database.h.
|
inline |
Definition at line 530 of file Database.h.
|
inlinefinalprotected |
Definition at line 252 of file Database.h.
|
inlinefinalprotected |
Definition at line 267 of file Database.h.
|
inlineprotected |
Definition at line 140 of file Database.h.
|
inlineprotected |
Definition at line 150 of file Database.h.
|
inlineprotected |
Definition at line 167 of file Database.h.
|
inlineprotected |
Definition at line 191 of file Database.h.
|
inlineprotected |
Definition at line 221 of file Database.h.
|
inlineprotected |
Definition at line 177 of file Database.h.
|
inlineprotected |
Definition at line 203 of file Database.h.
|
inlineprotected |
Definition at line 231 of file Database.h.
|
inlineprotected |
Definition at line 156 of file Database.h.
|
inline |
Definition at line 102 of file Database.h.
|
inlineprotected |
Definition at line 106 of file Database.h.
|
inline |
Definition at line 544 of file Database.h.
|
inline |
Definition at line 591 of file Database.h.
|
inlinestatic |
Definition at line 563 of file Database.h.
|
inline |
Definition at line 552 of file Database.h.
|
inline |
Definition at line 601 of file Database.h.
|
inlineprotected |
Definition at line 109 of file Database.h.
|
inlinefinalprotected |
Definition at line 502 of file Database.h.
|
inlinefinalprotected |
Definition at line 475 of file Database.h.
|
inlineprotected |
Definition at line 436 of file Database.h.
|
inline |
Definition at line 97 of file Database.h.
| std::vector< id_of_server > joedb::db::multi_server::Database::sorted_server | ( | Comparator | comparator | ) | const |
Definition at line 669 of file Database.h.
|
inlinestatic |
Definition at line 89 of file Database.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 429 of file Database.h.
|
inlinefinalprotected |
Definition at line 310 of file Database.h.
|
inlinefinalprotected |
Definition at line 290 of file Database.h.
|
inlinefinalprotected |
Definition at line 356 of file Database.h.
|
inlinefinalprotected |
Definition at line 335 of file Database.h.
|
inlinefinalprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 430 of file Database.h.
|
friend |
Definition at line 85 of file Database.h.
|
friend |
Definition at line 84 of file Database.h.
|
friend |
Definition at line 83 of file Database.h.
| Table_Id joedb::db::multi_server::Database::current_table_id = Table_Id{0} |
Definition at line 95 of file Database.h.
|
protected |
Definition at line 108 of file Database.h.
| size_t joedb::db::multi_server::Database::max_record_id |
Definition at line 94 of file Database.h.
|
protected |
Definition at line 433 of file Database.h.
|
protected |
Definition at line 434 of file Database.h.
|
protected |
Definition at line 105 of file Database.h.
|
protected |
Definition at line 432 of file Database.h.