Joedb 9.1.4
The Journal-Only Embedded Database
|
#include <joedb/interpreted/Database.h>
Public Member Functions | |
Database (size_t max_record_id=0) | |
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 | delete_from (Table_Id table_id, Record_Id record_id) final |
~Database () | |
![]() | |
const std::map< Table_Id, std::string > & | get_tables () const override |
const std::map< Field_Id, std::string > & | get_fields (Table_Id table_id) const override |
const Type & | get_field_type (Table_Id table_id, Field_Id field_id) const override |
const Compact_Freedom_Keeper & | get_freedom (Table_Id table_id) const override |
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, Type type) override |
void | drop_field (Table_Id table_id, Field_Id field_id) override |
void | rename_field (Table_Id, Field_Id, const std::string &name) override |
virtual | ~Database_Schema () override |
![]() | |
Table_Id | find_table (const std::string &name) const |
Field_Id | find_field (Table_Id table_id, const std::string &name) const |
const std::string & | get_table_name (Table_Id table_id) const |
const std::string & | get_field_name (Table_Id table_id, Field_Id field_id) const |
Record_Id | get_last_record_id (Table_Id table_id) const |
bool | is_used (Table_Id table_id, Record_Id record_id) const |
virtual | ~Readable () |
![]() | |
Writable (Commit_Level default_commit_level=Commit_Level::no_commit) | |
virtual void | custom (const std::string &name) |
virtual void | comment (const std::string &comment) |
virtual void | timestamp (int64_t timestamp) |
virtual void | valid_data () |
virtual void | flush () |
virtual void | checkpoint (Commit_Level commit_level) |
Commit_Level | get_default_commit_level () const |
void | default_checkpoint () |
virtual void | on_blob (Blob blob) |
virtual bool | wants_blob_data () const |
virtual Blob | write_blob_data (const std::string &data) |
virtual | ~Writable ()=default |
Additional Inherited Members | |
![]() | |
const Table & | get_table (Table_Id table_id) const |
Table & | get_table (Table_Id table_id) |
![]() | |
static void | check_identifier (const char *message, const std::string &name) |
![]() | |
std::map< Table_Id, Table > | tables |
std::map< Table_Id, std::string > | table_names |
Table_Id | current_table_id = Table_Id(0) |
Definition at line 9 of file Database.h.
|
inline |
Definition at line 15 of file Database.h.
|
default |
Reimplemented from joedb::Writable.
Definition at line 57 of file Database.cpp.
Reimplemented from joedb::Writable.
Definition at line 9 of file Database.cpp.
|
finalvirtual |
Reimplemented from joedb::Writable.
Definition at line 25 of file Database.cpp.