Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | List of all members
joedb::Database Class Reference

#include <joedb/interpreted/Database.h>

Inheritance diagram for joedb::Database:
Inheritance graph
[legend]
Collaboration diagram for joedb::Database:
Collaboration graph
[legend]

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 ()
 
- Public Member Functions inherited from joedb::Database_Schema
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 Typeget_field_type (Table_Id table_id, Field_Id field_id) const override
 
const Compact_Freedom_Keeperget_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
 
- Public Member Functions inherited from joedb::Readable
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 ()
 
- Public Member Functions inherited from joedb::Writable
 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

- Protected Member Functions inherited from joedb::Database_Schema
const Tableget_table (Table_Id table_id) const
 
Tableget_table (Table_Id table_id)
 
- Static Protected Member Functions inherited from joedb::Database_Schema
static void check_identifier (const char *message, const std::string &name)
 
- Protected Attributes inherited from joedb::Database_Schema
std::map< Table_Id, Tabletables
 
std::map< Table_Id, std::string > table_names
 
Table_Id current_table_id = Table_Id(0)
 

Detailed Description

Definition at line 9 of file Database.h.

Constructor & Destructor Documentation

◆ Database()

joedb::Database::Database ( size_t  max_record_id = 0)
inline

Definition at line 15 of file Database.h.

◆ ~Database()

joedb::Database::~Database ( )
default

Member Function Documentation

◆ delete_from()

void joedb::Database::delete_from ( Table_Id  table_id,
Record_Id  record_id 
)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 57 of file Database.cpp.

◆ insert_into()

void joedb::Database::insert_into ( Table_Id  table_id,
Record_Id  record_id 
)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 9 of file Database.cpp.

◆ insert_vector()

void joedb::Database::insert_vector ( Table_Id  table_id,
Record_Id  record_id,
size_t  size 
)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 25 of file Database.cpp.


The documentation for this class was generated from the following files: