1#ifndef joedb_SQL_Dump_Writable_declared
2#define joedb_SQL_Dump_Writable_declared
15 static constexpr const char *id_field_name =
"\"__id\"";
16 static constexpr const char *key_type =
"INTEGER";
21 const bool drop_column;
23 void write_type(
Type type);
33 bool drop_column =
true
37 blob_reader(blob_reader),
38 drop_column(drop_column)
49 const std::string &name,
57 const std::string &name
59 void custom(
const std::string &name)
final;
69 #define TYPE_MACRO(type, return_type, type_id, R, W)\
70 void update_##type_id(Table_Id table_id,\
73 return_type value) final;
90 bool drop_column =
true
106 bool drop_column =
true
SQL_Writable interpreter_writable
SQL_Dump_Writable_Parent(std::ostream &out, const Buffered_File *blob_reader=nullptr, bool drop_column=true)
SQL_Dump_Writable(std::ostream &out, const Buffered_File *blob_reader=nullptr, bool drop_column=true)
void drop_table(Table_Id table_id) 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 custom(const std::string &name) final
void rename_field(Table_Id table_id, Field_Id field_id, const std::string &name) final
void timestamp(int64_t timestamp) final
void delete_from(Table_Id table_id, Record_Id record_id) final
void drop_field(Table_Id table_id, Field_Id field_id) final
void add_field(Table_Id table_id, const std::string &name, Type type) final
const char * get_name() const
void comment(const std::string &comment) final
void rename_table(Table_Id table_id, const std::string &name) final
void create_table(const std::string &name) final
SQL_Writable(std::ostream &out, const Database_Schema &schema, const Buffered_File *blob_reader=nullptr, bool drop_column=true)