Joedb 10.4.6
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
joedb::Selective_Writable Class Reference

#include <joedb/Selective_Writable.h>

Inheritance diagram for joedb::Selective_Writable:
Collaboration diagram for joedb::Selective_Writable:

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
int64_t get_position () const override
void start_writing (int64_t position) override
void end_writing (int64_t position) override
void soft_checkpoint () override
void hard_checkpoint () override
void insert_into (Table_Id table_id, Record_Id record_id) override
void delete_from (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_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, std::string_view value) override
void update_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int32_t value) override
void update_int64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int64_t value) override
void update_boolean (Table_Id table_id, Record_Id record_id, Field_Id field_id, bool value) override
void update_float32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, float value) override
void update_float64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, double value) override
void update_int8 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int8_t value) override
void update_int16 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int16_t value) override
void update_blob (Table_Id table_id, Record_Id record_id, Field_Id field_id, joedb::Blob value) override
void on_blob (Blob blob) override
Public Member Functions inherited from joedb::Writable
virtual void flush ()
virtual void update_vector_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const std::string *value)
virtual std::string * get_own_string_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const std::string * get_own_string_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int32_t *value)
virtual int32_t * get_own_int32_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const int32_t * get_own_int32_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_int64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int64_t *value)
virtual int64_t * get_own_int64_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const int64_t * get_own_int64_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_reference (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const joedb::Record_Id *value)
virtual joedb::Record_Id * get_own_reference_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const joedb::Record_Id * get_own_reference_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_boolean (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const char *value)
virtual char * get_own_boolean_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const char * get_own_boolean_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_float32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const float *value)
virtual float * get_own_float32_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const float * get_own_float32_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_float64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const double *value)
virtual double * get_own_float64_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const double * get_own_float64_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_int8 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int8_t *value)
virtual int8_t * get_own_int8_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const int8_t * get_own_int8_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_int16 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int16_t *value)
virtual int16_t * get_own_int16_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const int16_t * get_own_int16_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual void update_vector_blob (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const joedb::Blob *value)
virtual joedb::Blob * get_own_blob_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity)
const joedb::Blob * get_own_blob_const_storage (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t &capacity) const
virtual bool wants_blob_data () const
virtual Blob write_blob (std::string_view 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 12 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.

◆ 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 120 of file Selective_Writable.cpp.

◆ delete_vector()

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

Implements joedb::Writable.

Definition at line 137 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.

◆ end_writing()

void joedb::Selective_Writable::end_writing ( int64_t position)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 96 of file Selective_Writable.cpp.

◆ get_position()

int64_t joedb::Selective_Writable::get_position ( ) const
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 86 of file Selective_Writable.cpp.

◆ hard_checkpoint()

void joedb::Selective_Writable::hard_checkpoint ( )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 106 of file Selective_Writable.cpp.

◆ has_blobs()

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

Definition at line 32 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 114 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

Implements joedb::Writable.

Definition at line 126 of file Selective_Writable.cpp.

◆ on_blob()

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

Reimplemented from joedb::Writable.

Definition at line 159 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.

◆ soft_checkpoint()

void joedb::Selective_Writable::soft_checkpoint ( )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 101 of file Selective_Writable.cpp.

◆ start_writing()

void joedb::Selective_Writable::start_writing ( int64_t position)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 91 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.

◆ update_blob()

void joedb::Selective_Writable::update_blob ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
joedb::Blob value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 30 of file Selective_Writable.cpp.

◆ update_boolean()

void joedb::Selective_Writable::update_boolean ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
bool value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 18 of file Selective_Writable.cpp.

◆ update_float32()

void joedb::Selective_Writable::update_float32 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
float value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 22 of file Selective_Writable.cpp.

◆ update_float64()

void joedb::Selective_Writable::update_float64 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
double value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 23 of file Selective_Writable.cpp.

◆ update_int16()

void joedb::Selective_Writable::update_int16 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
int16_t value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 27 of file Selective_Writable.cpp.

◆ update_int32()

void joedb::Selective_Writable::update_int32 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
int32_t value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 10 of file Selective_Writable.cpp.

◆ update_int64()

void joedb::Selective_Writable::update_int64 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
int64_t value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 11 of file Selective_Writable.cpp.

◆ update_int8()

void joedb::Selective_Writable::update_int8 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
int8_t value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 26 of file Selective_Writable.cpp.

◆ update_string()

void joedb::Selective_Writable::update_string ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
std::string_view value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 7 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: