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

#include <joedb/Selective_Writable.h>

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

Public Types

enum  Mode {
  schema = 1 , data = 2 , information = 4 , data_and_schema = 3 ,
  data_and_information = 6 , all = 7
}
 

Public Member Functions

 Selective_Writable (Writable &writable, Mode mode)
 
bool has_blobs () const
 
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 table_id, Field_Id field_id, const std::string &name) override
 
void custom (const std::string &name) override
 
void comment (const std::string &comment) override
 
void timestamp (int64_t timestamp) override
 
void valid_data () override
 
void checkpoint (Commit_Level commit_level) override
 
void insert_into (Table_Id table_id, Record_Id record_id) override
 
void insert_vector (Table_Id table_id, Record_Id record_id, size_t size) override
 
void delete_from (Table_Id table_id, Record_Id record_id) override
 
void on_blob (Blob blob) final
 
- Public Member Functions inherited from joedb::Writable
 Writable (Commit_Level default_commit_level=Commit_Level::no_commit)
 
virtual void flush ()
 
Commit_Level get_default_commit_level () const
 
void default_checkpoint ()
 
virtual bool wants_blob_data () const
 
virtual Blob write_blob_data (const std::string &data)
 
virtual ~Writable ()=default
 

Detailed Description

Definition at line 9 of file Selective_Writable.h.

Member Enumeration Documentation

◆ Mode

Enumerator
schema 
data 
information 
data_and_schema 
data_and_information 
all 

Definition at line 13 of file Selective_Writable.h.

Constructor & Destructor Documentation

◆ Selective_Writable()

joedb::Selective_Writable::Selective_Writable ( Writable writable,
Mode  mode 
)

Definition at line 6 of file Selective_Writable.cpp.

Member Function Documentation

◆ add_field()

void joedb::Selective_Writable::add_field ( Table_Id  table_id,
const std::string &  name,
Type  type 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 36 of file Selective_Writable.cpp.

◆ checkpoint()

void joedb::Selective_Writable::checkpoint ( Commit_Level  commit_level)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 86 of file Selective_Writable.cpp.

◆ comment()

void joedb::Selective_Writable::comment ( const std::string &  comment)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 68 of file Selective_Writable.cpp.

◆ create_table()

void joedb::Selective_Writable::create_table ( const std::string &  name)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 17 of file Selective_Writable.cpp.

◆ custom()

void joedb::Selective_Writable::custom ( const std::string &  name)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 59 of file Selective_Writable.cpp.

◆ delete_from()

void joedb::Selective_Writable::delete_from ( Table_Id  table_id,
Record_Id  record_id 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 108 of file Selective_Writable.cpp.

◆ drop_field()

void joedb::Selective_Writable::drop_field ( Table_Id  table_id,
Field_Id  field_id 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 44 of file Selective_Writable.cpp.

◆ drop_table()

void joedb::Selective_Writable::drop_table ( Table_Id  table_id)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 23 of file Selective_Writable.cpp.

◆ has_blobs()

bool joedb::Selective_Writable::has_blobs ( ) const
inline

Definition at line 33 of file Selective_Writable.h.

◆ insert_into()

void joedb::Selective_Writable::insert_into ( Table_Id  table_id,
Record_Id  record_id 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 94 of file Selective_Writable.cpp.

◆ insert_vector()

void joedb::Selective_Writable::insert_vector ( Table_Id  table_id,
Record_Id  record_id,
size_t  size 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 100 of file Selective_Writable.cpp.

◆ on_blob()

void joedb::Selective_Writable::on_blob ( Blob  blob)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 125 of file Selective_Writable.cpp.

◆ rename_field()

void joedb::Selective_Writable::rename_field ( Table_Id  table_id,
Field_Id  field_id,
const std::string &  name 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 51 of file Selective_Writable.cpp.

◆ rename_table()

void joedb::Selective_Writable::rename_table ( Table_Id  table_id,
const std::string &  name 
)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 29 of file Selective_Writable.cpp.

◆ timestamp()

void joedb::Selective_Writable::timestamp ( int64_t  timestamp)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 74 of file Selective_Writable.cpp.

◆ valid_data()

void joedb::Selective_Writable::valid_data ( )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 80 of file Selective_Writable.cpp.


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