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

#include <joedb/ui/Raw_Dump_Writable.h>

Inheritance diagram for joedb::Raw_Dump_Writable:
Collaboration diagram for joedb::Raw_Dump_Writable:

Public Member Functions

 Raw_Dump_Writable (std::ostream &out)
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 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_vector_string (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const std::string *value) override
void update_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int32_t value) override
void update_vector_int32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const 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_vector_int64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int64_t *value) override
void update_boolean (Table_Id table_id, Record_Id record_id, Field_Id field_id, bool value) override
void update_vector_boolean (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const char *value) override
void update_float32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, float value) override
void update_vector_float32 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const float *value) override
void update_float64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, double value) override
void update_vector_float64 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const double *value) override
void update_int8 (Table_Id table_id, Record_Id record_id, Field_Id field_id, int8_t value) override
void update_vector_int8 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const 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_vector_int16 (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const int16_t *value) override
void update_blob (Table_Id table_id, Record_Id record_id, Field_Id field_id, joedb::Blob value) override
void update_vector_blob (Table_Id table_id, Record_Id record_id, Field_Id field_id, size_t size, const joedb::Blob *value) override
bool wants_blob_data () const override
Blob write_blob (std::string_view data) override
 ~Raw_Dump_Writable ()
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 flush ()
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 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 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 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 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 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 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 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 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 void on_blob (Blob blob)
virtual ~Writable ()=default

Detailed Description

Definition at line 11 of file Raw_Dump_Writable.h.

Constructor & Destructor Documentation

◆ Raw_Dump_Writable()

joedb::Raw_Dump_Writable::Raw_Dump_Writable ( std::ostream & out)
inline

Definition at line 19 of file Raw_Dump_Writable.h.

◆ ~Raw_Dump_Writable()

joedb::Raw_Dump_Writable::~Raw_Dump_Writable ( )
default

Member Function Documentation

◆ add_field()

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

Reimplemented from joedb::Writable.

Definition at line 61 of file Raw_Dump_Writable.cpp.

◆ comment()

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

Reimplemented from joedb::Writable.

Definition at line 108 of file Raw_Dump_Writable.cpp.

◆ create_table()

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

Reimplemented from joedb::Writable.

Definition at line 32 of file Raw_Dump_Writable.cpp.

◆ custom()

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

Reimplemented from joedb::Writable.

Definition at line 99 of file Raw_Dump_Writable.cpp.

◆ delete_from()

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

Reimplemented from joedb::Writable.

Definition at line 138 of file Raw_Dump_Writable.cpp.

◆ delete_vector()

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

Implements joedb::Writable.

Definition at line 159 of file Raw_Dump_Writable.cpp.

◆ drop_field()

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

Reimplemented from joedb::Writable.

Definition at line 77 of file Raw_Dump_Writable.cpp.

◆ drop_table()

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

Reimplemented from joedb::Writable.

Definition at line 41 of file Raw_Dump_Writable.cpp.

◆ insert_into()

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

Reimplemented from joedb::Writable.

Definition at line 131 of file Raw_Dump_Writable.cpp.

◆ insert_vector()

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

Implements joedb::Writable.

Definition at line 146 of file Raw_Dump_Writable.cpp.

◆ rename_field()

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

Reimplemented from joedb::Writable.

Definition at line 84 of file Raw_Dump_Writable.cpp.

◆ rename_table()

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

Reimplemented from joedb::Writable.

Definition at line 48 of file Raw_Dump_Writable.cpp.

◆ timestamp()

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

Reimplemented from joedb::Writable.

Definition at line 117 of file Raw_Dump_Writable.cpp.

◆ update_blob()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_boolean()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_float32()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_float64()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_int16()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_int32()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_int64()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_int8()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_string()

void joedb::Raw_Dump_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 Raw_Dump_Writable.cpp.

◆ update_vector_blob()

void joedb::Raw_Dump_Writable::update_vector_blob ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const joedb::Blob * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 30 of file Raw_Dump_Writable.cpp.

◆ update_vector_boolean()

void joedb::Raw_Dump_Writable::update_vector_boolean ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const char * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 18 of file Raw_Dump_Writable.cpp.

◆ update_vector_float32()

void joedb::Raw_Dump_Writable::update_vector_float32 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const float * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 22 of file Raw_Dump_Writable.cpp.

◆ update_vector_float64()

void joedb::Raw_Dump_Writable::update_vector_float64 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const double * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 23 of file Raw_Dump_Writable.cpp.

◆ update_vector_int16()

void joedb::Raw_Dump_Writable::update_vector_int16 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const int16_t * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 27 of file Raw_Dump_Writable.cpp.

◆ update_vector_int32()

void joedb::Raw_Dump_Writable::update_vector_int32 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const int32_t * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 10 of file Raw_Dump_Writable.cpp.

◆ update_vector_int64()

void joedb::Raw_Dump_Writable::update_vector_int64 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const int64_t * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 11 of file Raw_Dump_Writable.cpp.

◆ update_vector_int8()

void joedb::Raw_Dump_Writable::update_vector_int8 ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const int8_t * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 26 of file Raw_Dump_Writable.cpp.

◆ update_vector_string()

void joedb::Raw_Dump_Writable::update_vector_string ( Table_Id table_id,
Record_Id record_id,
Field_Id field_id,
size_t size,
const std::string * value )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 7 of file Raw_Dump_Writable.cpp.

◆ valid_data()

void joedb::Raw_Dump_Writable::valid_data ( )
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 124 of file Raw_Dump_Writable.cpp.

◆ wants_blob_data()

bool joedb::Raw_Dump_Writable::wants_blob_data ( ) const
inlineoverridevirtual

Reimplemented from joedb::Writable.

Definition at line 77 of file Raw_Dump_Writable.h.

◆ write_blob()

Blob joedb::Raw_Dump_Writable::write_blob ( std::string_view data)
overridevirtual

Reimplemented from joedb::Writable.

Definition at line 209 of file Raw_Dump_Writable.cpp.


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