MySQL 8.0.40
Source Code Documentation
|
The purpose of this interface is to enable retrieving the SQL statements necessary to create and populate a DD table. More...
#include <object_table_definition.h>
Public Member Functions | |
virtual | ~Object_table_definition ()=default |
virtual void | set_table_name (const String_type &name)=0 |
Set the name of the table. More... | |
virtual void | add_field (int field_number, const String_type &field_name, const String_type field_definition)=0 |
Add a field to the object table definition. More... | |
virtual void | add_index (int index_number, const String_type &index_name, const String_type &index_definition)=0 |
Add an index to the object table definition. More... | |
virtual String_type | get_ddl () const =0 |
Get the SQL DDL statement for creating the dictionary table. More... | |
virtual const std::vector< String_type > & | get_dml () const =0 |
Get the SQL DML statements for populating the table. More... | |
virtual void | store_into_properties (Properties *table_def_properties) const =0 |
Store the elements of the object table definition into a property object. More... | |
virtual bool | restore_from_properties (const Properties &table_def_properties)=0 |
Restore the elements of the object table definition from a property object. More... | |
The purpose of this interface is to enable retrieving the SQL statements necessary to create and populate a DD table.
An Object_table instance may use one or more instances implementing this interface to keep track of the table definitions corresponding to the supported DD versions.
|
virtualdefault |
|
pure virtual |
Add a field to the object table definition.
field_number | Positional index of the field. |
field_name | Label which can be used to refer to the field. |
field_definition | Complete field definition with name, type etc. |
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Add an index to the object table definition.
index_number | Positional index (sic!) of the index. |
index_name | Label which can be used to refer to the index. |
index_definition | Complete index definition. |
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Get the SQL DDL statement for creating the dictionary table.
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Get the SQL DML statements for populating the table.
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Restore the elements of the object table definition from a property object.
table_def_properties | Properties object containing the definition. |
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Set the name of the table.
name | Table name. |
Implemented in dd::Object_table_definition_impl.
|
pure virtual |
Store the elements of the object table definition into a property object.
[out] | table_def_properties | Properties object containing the definition. |
Implemented in dd::Object_table_definition_impl.