|
Joedb 10.2.3
The Journal-Only Embedded Database
|
implement joedb::Writable in a Database More...
#include <tutorial/rpc/city/Database_Writable.h>


Public Member Functions | |
| Database_Writable () | |
| void | set_max_record_id (joedb::index_t record_id) |
| int64_t | get_schema_checkpoint () const |
| void | initialize_with_readonly_journal (joedb::Readonly_Journal &journal) |
Public Member Functions inherited from tutorial::rpc::city::Database | |
| bool | is_valid (id_of_city id) const |
| container_of_city | get_city_table () const |
| id_of_city | next (id_of_city id) const |
| id_of_city | previous (id_of_city id) const |
| const std::string & | get_name (id_of_city record=id_of_city{0}) const |
Public Member Functions inherited from joedb::Writable | |
| virtual int64_t | get_position () const |
| virtual void | start_writing (int64_t position) |
| virtual void | end_writing (int64_t position) |
| virtual void | soft_checkpoint () |
| virtual 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)=0 |
| virtual void | delete_vector (Table_Id table_id, Record_Id record_id, size_t size)=0 |
| virtual void | on_blob (Blob blob) |
| virtual bool | wants_blob_data () const |
| virtual Blob | write_blob (const std::string &data) |
| virtual | ~Writable ()=default |
Protected Member Functions | |
| void | delete_from (Table_Id table_id, Record_Id record_id) override |
| void | insert_into (Table_Id table_id, Record_Id record_id) override |
| void | delete_vector (Table_Id table_id, Record_Id record_id, size_t size) override |
| void | insert_vector (Table_Id table_id, Record_Id record_id, size_t size) override |
| void | update_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, const std::string &value) override |
| void | update_vector_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const std::string *value) override |
| std::string * | get_own_string_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) override |
| void | comment (const std::string &comment) override |
| void | timestamp (int64_t timestamp) override |
| void | valid_data () override |
| bool | requires_schema_upgrade () const |
| void | check_schema () |
| void | create_table (const std::string &name) override |
| void | drop_table (Table_Id table_id) override |
| void | rename_table (Table_Id table_id, const std::string &name) override |
| 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) override |
| void | rename_field (Table_Id table_id, Field_Id field_id, const std::string &name) override |
| void | custom (const std::string &name) override |
Protected Member Functions inherited from tutorial::rpc::city::Database | |
| bool | is_valid_record_id_for_city (Record_Id record_id) const |
| void | internal_delete_city (Record_Id record_id) |
| void | internal_insert_city (Record_Id record_id) |
| void | internal_vector_insert_city (Record_Id record_id, size_t size) |
| void | internal_update_city__name (Record_Id record_id, const std::string &field_value_of_name) |
| void | internal_update_vector_city__name (Record_Id record_id, size_t size, const std::string *value) |
Protected Attributes | |
| joedb::index_t | max_record_id |
| Table_Id | current_table_id = Table_Id{0} |
| bool | upgrading_schema = false |
| joedb::Memory_File | schema_file |
| joedb::Writable_Journal | schema_journal |
Protected Attributes inherited from tutorial::rpc::city::Database | |
| detail::data_of_city | storage_of_city |
Additional Inherited Members | |
Static Public Member Functions inherited from tutorial::rpc::city::Database | |
| template<typename E = joedb::Exception> | |
| static void | throw_exception (const std::string &message) |
| static id_of_city | null_city () |
| static constexpr id_of_city | the_city () |
Definition at line 36 of file Database_Writable.h.
|
inline |
Definition at line 258 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 223 of file Database_Writable.h.
|
inlineprotected |
Definition at line 179 of file Database_Writable.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 166 of file Database_Writable.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 200 of file Database_Writable.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 251 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 42 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 62 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 234 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 207 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 145 of file Database_Writable.h.
|
inline |
Definition at line 268 of file Database_Writable.h.
|
inline |
Definition at line 273 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 48 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 81 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 240 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 213 of file Database_Writable.h.
|
inlineprotected |
Definition at line 174 of file Database_Writable.h.
|
inline |
Definition at line 263 of file Database_Writable.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 167 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 104 of file Database_Writable.h.
|
inlineoverrideprotected |
Definition at line 124 of file Database_Writable.h.
|
inlineoverrideprotectedvirtual |
Reimplemented from joedb::Writable.
Definition at line 168 of file Database_Writable.h.
|
protected |
Definition at line 40 of file Database_Writable.h.
|
protected |
Definition at line 39 of file Database_Writable.h.
|
protected |
Definition at line 171 of file Database_Writable.h.
|
protected |
Definition at line 172 of file Database_Writable.h.
|
protected |
Definition at line 170 of file Database_Writable.h.