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

#include <joedb/ui/SQL_Dump_Writable.h>

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

Public Member Functions

 SQL_Writable (std::ostream &out, const Database_Schema &schema, const Buffered_File *blob_reader=nullptr, bool drop_column=true)
 
const char * get_name () const
 
void create_table (const std::string &name) final
 
void drop_table (Table_Id table_id) final
 
void rename_table (Table_Id table_id, const std::string &name) final
 
void add_field (Table_Id table_id, const std::string &name, Type type) final
 
void drop_field (Table_Id table_id, Field_Id field_id) final
 
void rename_field (Table_Id table_id, Field_Id field_id, const std::string &name) final
 
void custom (const std::string &name) final
 
void comment (const std::string &comment) final
 
void timestamp (int64_t timestamp) final
 
void valid_data () final
 
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
 
 ~SQL_Writable ()
 
- Public Member Functions inherited from joedb::Writable
 Writable (Commit_Level default_commit_level=Commit_Level::no_commit)
 
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
 

Detailed Description

Definition at line 12 of file SQL_Dump_Writable.h.

Constructor & Destructor Documentation

◆ SQL_Writable()

joedb::SQL_Writable::SQL_Writable ( std::ostream &  out,
const Database_Schema schema,
const Buffered_File blob_reader = nullptr,
bool  drop_column = true 
)
inline

Definition at line 28 of file SQL_Dump_Writable.h.

◆ ~SQL_Writable()

joedb::SQL_Writable::~SQL_Writable ( )
default

Member Function Documentation

◆ add_field()

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

Reimplemented from joedb::Writable.

Definition at line 93 of file SQL_Dump_Writable.cpp.

◆ comment()

void joedb::SQL_Writable::comment ( const std::string &  comment)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 138 of file SQL_Dump_Writable.cpp.

◆ create_table()

void joedb::SQL_Writable::create_table ( const std::string &  name)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 66 of file SQL_Dump_Writable.cpp.

◆ custom()

void joedb::SQL_Writable::custom ( const std::string &  name)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 131 of file SQL_Dump_Writable.cpp.

◆ delete_from()

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

Reimplemented from joedb::Writable.

Definition at line 180 of file SQL_Dump_Writable.cpp.

◆ drop_field()

void joedb::SQL_Writable::drop_field ( Table_Id  table_id,
Field_Id  field_id 
)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 108 of file SQL_Dump_Writable.cpp.

◆ drop_table()

void joedb::SQL_Writable::drop_table ( Table_Id  table_id)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 74 of file SQL_Dump_Writable.cpp.

◆ get_name()

const char * joedb::SQL_Writable::get_name ( ) const
inline

Definition at line 41 of file SQL_Dump_Writable.h.

◆ insert_into()

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

Reimplemented from joedb::Writable.

Definition at line 159 of file SQL_Dump_Writable.cpp.

◆ insert_vector()

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

Reimplemented from joedb::Writable.

Definition at line 167 of file SQL_Dump_Writable.cpp.

◆ rename_field()

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

Reimplemented from joedb::Writable.

Definition at line 118 of file SQL_Dump_Writable.cpp.

◆ rename_table()

void joedb::SQL_Writable::rename_table ( Table_Id  table_id,
const std::string &  name 
)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 81 of file SQL_Dump_Writable.cpp.

◆ timestamp()

void joedb::SQL_Writable::timestamp ( int64_t  timestamp)
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 145 of file SQL_Dump_Writable.cpp.

◆ valid_data()

void joedb::SQL_Writable::valid_data ( )
finalvirtual

Reimplemented from joedb::Writable.

Definition at line 152 of file SQL_Dump_Writable.cpp.


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