MySQL 8.0.39
Source Code Documentation
|
#include <table.h>
Public Member Functions | |
bool | update_aux_key (Aux_key *key) const override |
~Table () override=default | |
virtual bool | is_temporary () const =0 |
virtual void | set_is_temporary (bool is_temporary)=0 |
virtual Object_id | collation_id () const =0 |
virtual void | set_collation_id (Object_id collation_id)=0 |
virtual Object_id | tablespace_id () const =0 |
virtual void | set_tablespace_id (Object_id tablespace_id)=0 |
virtual bool | is_explicit_tablespace () const =0 |
virtual const String_type & | engine () const =0 |
virtual void | set_engine (const String_type &engine)=0 |
virtual enum_row_format | row_format () const =0 |
virtual void | set_row_format (enum_row_format row_format)=0 |
virtual const String_type & | comment () const =0 |
virtual void | set_comment (const String_type &comment)=0 |
virtual uint | last_checked_for_upgrade_version_id () const =0 |
virtual void | mark_as_checked_for_upgrade ()=0 |
virtual const Properties & | se_private_data () const =0 |
virtual Properties & | se_private_data ()=0 |
virtual bool | set_se_private_data (const String_type &se_private_data_raw)=0 |
virtual bool | set_se_private_data (const Properties &se_private_data)=0 |
virtual Object_id | se_private_id () const =0 |
virtual void | set_se_private_id (Object_id se_private_id)=0 |
virtual LEX_CSTRING | engine_attribute () const =0 |
virtual void | set_engine_attribute (LEX_CSTRING attrs)=0 |
virtual LEX_CSTRING | secondary_engine_attribute () const =0 |
virtual void | set_secondary_engine_attribute (LEX_CSTRING attrs)=0 |
virtual enum_partition_type | partition_type () const =0 |
virtual void | set_partition_type (enum_partition_type partition_type)=0 |
virtual enum_default_partitioning | default_partitioning () const =0 |
virtual void | set_default_partitioning (enum_default_partitioning default_partitioning)=0 |
virtual const String_type & | partition_expression () const =0 |
virtual void | set_partition_expression (const String_type &partition_expression)=0 |
virtual const String_type & | partition_expression_utf8 () const =0 |
virtual void | set_partition_expression_utf8 (const String_type &partition_expression)=0 |
virtual enum_subpartition_type | subpartition_type () const =0 |
virtual void | set_subpartition_type (enum_subpartition_type subpartition_type)=0 |
virtual enum_default_partitioning | default_subpartitioning () const =0 |
virtual void | set_default_subpartitioning (enum_default_partitioning default_subpartitioning)=0 |
virtual const String_type & | subpartition_expression () const =0 |
virtual void | set_subpartition_expression (const String_type &subpartition_expression)=0 |
virtual const String_type & | subpartition_expression_utf8 () const =0 |
virtual void | set_subpartition_expression_utf8 (const String_type &subpartition_expression)=0 |
const Table & | table () const |
Dummy method to be able to use Partition and Table interchangeably in templates. More... | |
Table & | table () |
virtual Index * | add_index ()=0 |
virtual Index * | add_first_index ()=0 |
virtual const Index_collection & | indexes () const =0 |
virtual Index_collection * | indexes ()=0 |
virtual Foreign_key * | add_foreign_key ()=0 |
virtual const Foreign_key_collection & | foreign_keys () const =0 |
virtual Foreign_key_collection * | foreign_keys ()=0 |
virtual const Foreign_key_parent_collection & | foreign_key_parents () const =0 |
virtual bool | reload_foreign_key_parents (THD *thd)=0 |
virtual Partition * | add_partition ()=0 |
virtual const Partition_collection & | partitions () const =0 |
virtual Partition_collection * | partitions ()=0 |
virtual const Partition_leaf_vector & | leaf_partitions () const =0 |
virtual Partition_leaf_vector * | leaf_partitions ()=0 |
virtual bool | has_trigger () const =0 |
Check if table has any triggers. More... | |
virtual const Trigger_collection & | triggers () const =0 |
Get const reference to Trigger_collection. More... | |
virtual Trigger_collection * | triggers ()=0 |
Get non-const pointer to Trigger_collection. More... | |
virtual void | copy_triggers (const Table *tab_obj)=0 |
Copy all the triggers from another dd::Table object. More... | |
virtual Trigger * | add_trigger (Trigger::enum_action_timing at, Trigger::enum_event_type et)=0 |
Add new trigger to the table. More... | |
virtual const Trigger * | get_trigger (const char *name) const =0 |
Get dd::Trigger object for the given trigger name. More... | |
virtual Trigger * | add_trigger_following (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et)=0 |
Add new trigger just after the trigger specified in argument. More... | |
virtual Trigger * | add_trigger_preceding (const Trigger *trigger, Trigger::enum_action_timing at, Trigger::enum_event_type et)=0 |
Add new trigger just before the trigger specified in argument. More... | |
virtual void | drop_trigger (const Trigger *trigger)=0 |
Drop the given trigger object. More... | |
virtual void | drop_all_triggers ()=0 |
Drop all the trigger on this dd::Table object. More... | |
virtual Check_constraint * | add_check_constraint ()=0 |
virtual const Check_constraint_collection & | check_constraints () const =0 |
virtual Check_constraint_collection * | check_constraints ()=0 |
Table * | clone () const override=0 |
Allocate a new object graph and invoke the copy constructor for each object. More... | |
Table * | clone_dropped_object_placeholder () const override=0 |
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry. More... | |
virtual void | serialize (Sdi_wcontext *wctx, Sdi_writer *w) const =0 |
Converts *this into json. More... | |
virtual bool | deserialize (Sdi_rcontext *rctx, const RJ_Value &val)=0 |
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided. More... | |
Public Member Functions inherited from dd::Abstract_table | |
virtual bool | update_id_key (Id_key *key) const |
virtual bool | update_name_key (Name_key *key) const |
~Abstract_table () override=default | |
virtual Object_id | schema_id () const =0 |
virtual void | set_schema_id (Object_id schema_id)=0 |
virtual uint | mysql_version_id () const =0 |
virtual const Properties & | options () const =0 |
virtual Properties & | options ()=0 |
virtual bool | set_options (const Properties &options)=0 |
virtual bool | set_options (const String_type &options_raw)=0 |
virtual ulonglong | created (bool convert_time) const =0 |
virtual void | set_created (ulonglong created)=0 |
virtual ulonglong | last_altered (bool convert_time) const =0 |
virtual void | set_last_altered (ulonglong last_altered)=0 |
virtual enum_table_type | type () const =0 |
virtual enum_hidden_type | hidden () const =0 |
virtual void | set_hidden (enum_hidden_type hidden)=0 |
virtual Column * | add_column ()=0 |
virtual bool | drop_column (const String_type &name)=0 |
virtual const Column_collection & | columns () const =0 |
virtual Column_collection * | columns ()=0 |
virtual const Column * | get_column (const String_type &name) const =0 |
Public Member Functions inherited from dd::Entity_object | |
virtual Object_id | id () const =0 |
The unique dictionary object id. More... | |
virtual bool | is_persistent () const =0 |
Is dictionary object persistent in dictionary tables ? More... | |
virtual const String_type & | name () const =0 |
virtual void | set_name (const String_type &name)=0 |
Public Member Functions inherited from dd::Weak_object | |
virtual void | debug_print (String_type &outb) const =0 |
Weak_object ()=default | |
Weak_object (const Weak_object &)=default | |
virtual | ~Weak_object ()=default |
Static Public Member Functions | |
static bool | update_aux_key (Aux_key *key, const String_type &engine, Object_id se_private_id) |
Static Public Member Functions inherited from dd::Abstract_table | |
static bool | update_id_key (Id_key *key, Object_id id) |
static bool | update_name_key (Name_key *key, Object_id schema_id, const String_type &name) |
typedef std::vector<Foreign_key_parent *> dd::Table::Foreign_key_parent_collection |
typedef Table_impl dd::Table::Impl |
typedef Collection<Index *> dd::Table::Index_collection |
typedef Collection<Partition *> dd::Table::Partition_collection |
typedef std::vector<Partition *> dd::Table::Partition_leaf_vector |
typedef Collection<Trigger *> dd::Table::Trigger_collection |
|
overridedefault |
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Add new trigger to the table.
at | - Action timing of the trigger to be added. |
et | - Event type of the trigger to be added. |
Implemented in dd::Table_impl.
|
pure virtual |
Add new trigger just after the trigger specified in argument.
trigger | - dd::Trigger object after which the new trigger should be created. |
at | - Action timing of the trigger to be added. |
et | - Event type of the trigger to be added. |
Implemented in dd::Table_impl.
|
pure virtual |
Add new trigger just before the trigger specified in argument.
trigger | - dd::Trigger object before which the new trigger should be created. |
at | - Action timing of the trigger to be added. |
et | - Event type of the trigger to be added. |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
overridepure virtual |
Allocate a new object graph and invoke the copy constructor for each object.
Implements dd::Abstract_table.
Implemented in dd::Table_impl.
|
overridepure virtual |
Allocate a new object which can serve as a placeholder for the original object in the Dictionary_client's dropped registry.
Such object has the same keys as the original but has no other info and as result occupies less memory.
Implements dd::Abstract_table.
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Copy all the triggers from another dd::Table object.
tab_obj | Pointer to Table from which the triggers are copied. |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Re-establishes the state of *this by reading sdi information from the rapidjson DOM subobject provided.
Cross-references encountered within this object are tracked in sdictx, so that they can be updated when the entire object graph has been established.
rctx | stores book-keeping information for the deserialization process |
val | subobject of rapidjson DOM containing json representation of this object |
Implemented in dd::Table_impl.
|
pure virtual |
Drop all the trigger on this dd::Table object.
The method returns void, as we just remove the trigger from dd::Collection (dd::Table_impl::m_triggers) in memory. The trigger will be removed from mysql.triggers DD table when the dd::Table object is stored/updated.
Implemented in dd::Table_impl.
|
pure virtual |
Drop the given trigger object.
The method returns void, as we just remove the trigger from dd::Collection (dd::Table_impl::m_triggers) in memory. The trigger will be removed from mysql.triggers DD table when the dd::Table object is stored/updated.
trigger | - dd::Trigger object to be dropped. |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Get dd::Trigger object for the given trigger name.
Implemented in dd::Table_impl.
|
pure virtual |
Check if table has any triggers.
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Converts *this into json.
Converts all member variables that are to be included in the sdi into json by transforming them appropriately and passing them to the rapidjson writer provided.
wctx | opaque context for data needed by serialization |
w | rapidjson writer which will perform conversion to json |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Implemented in dd::Table_impl.
|
inline |
|
inline |
Dummy method to be able to use Partition and Table interchangeably in templates.
|
pure virtual |
Implemented in dd::Table_impl.
|
pure virtual |
Get const reference to Trigger_collection.
Implemented in dd::Table_impl.
|
pure virtual |
Get non-const pointer to Trigger_collection.
Implemented in dd::Table_impl.
|
inlineoverridevirtual |
Reimplemented from dd::Abstract_table.
|
static |