24#ifndef DD_TABLES__TRIGGERS_INCLUDED
25#define DD_TABLES__TRIGGERS_INCLUDED
153 const char *trigger_name);
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Definition: object_key.h:38
Definition: object_table_impl.h:36
Definition: raw_record.h:46
Definition: triggers.h:47
enum_foreign_keys
Definition: triggers.h:87
@ FK_SCHEMA_ID
Definition: triggers.h:88
@ FK_CLIENT_COLLATION_ID
Definition: triggers.h:90
@ FK_CONNECTION_COLLATION_ID
Definition: triggers.h:91
@ FK_TABLE_ID
Definition: triggers.h:89
@ FK_SCHEMA_COLLATION_ID
Definition: triggers.h:92
static Object_key * create_key_by_schema_id(Object_id schema_id)
Create a key to find all triggers for a given schema.
Definition: triggers.cc:131
static Object_key * create_key_by_trigger_name(Object_id schema_id, const char *trigger_name)
Create a key to find a trigger by schema_id and trigger name.
Definition: triggers.cc:147
static Object_key * create_key_by_table_id(Object_id table_id)
Create a key to find all triggers for a given table.
Definition: triggers.cc:139
enum_fields
Definition: triggers.h:56
@ FIELD_ACTION_STATEMENT
Definition: triggers.h:64
@ FIELD_TABLE_ID
Definition: triggers.h:61
@ FIELD_CLIENT_COLLATION_ID
Definition: triggers.h:70
@ FIELD_DEFINER
Definition: triggers.h:69
@ FIELD_EVENT_TYPE
Definition: triggers.h:60
@ NUMBER_OF_FIELDS
Definition: triggers.h:74
@ FIELD_CONNECTION_COLLATION_ID
Definition: triggers.h:71
@ FIELD_ACTION_STATEMENT_UTF8
Definition: triggers.h:65
@ FIELD_SCHEMA_COLLATION_ID
Definition: triggers.h:72
@ FIELD_LAST_ALTERED
Definition: triggers.h:67
@ FIELD_OPTIONS
Definition: triggers.h:73
@ FIELD_NAME
Definition: triggers.h:59
@ FIELD_SCHEMA_ID
Definition: triggers.h:58
@ FIELD_CREATED
Definition: triggers.h:66
@ FIELD_SQL_MODE
Definition: triggers.h:68
@ FIELD_ID
Definition: triggers.h:57
@ FIELD_ACTION_TIMING
Definition: triggers.h:62
@ FIELD_ACTION_ORDER
Definition: triggers.h:63
enum_indexes
Definition: triggers.h:77
@ INDEX_UK_SCHEMA_ID_NAME
Definition: triggers.h:79
@ INDEX_K_DEFINER
Definition: triggers.h:84
@ INDEX_K_CLIENT_COLLATION_ID
Definition: triggers.h:81
@ INDEX_UK_TABLE_ID_EVENT_TYPE_ACTION_TIMING_ACTION_ORDER
Definition: triggers.h:80
@ INDEX_K_CONNECTION_COLLATION_ID
Definition: triggers.h:82
@ INDEX_K_SCHEMA_COLLATION_ID
Definition: triggers.h:83
@ INDEX_PK_ID
Definition: triggers.h:78
Triggers()
Definition: triggers.cc:51
static const Triggers & instance()
Definition: triggers.h:49
static Object_id read_table_id(const Raw_record &r)
Get the table id from the record.
Definition: triggers.cc:155
static const CHARSET_INFO * name_collation()
Definition: triggers.cc:45
static bool get_trigger_table_id(THD *thd, Object_id schema_id, const String_type &trigger_name, Object_id *oid)
Find table's Object_id for a given trigger name.
Definition: triggers.cc:161
static Object_key * create_key_by_definer(const String_type &definer)
Create a key to find all triggers for a given definer.
Definition: triggers.cc:190
const dd::system_views::Columns_extensions * s_instance
Definition: columns_extensions.cc:41
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
unsigned long long Object_id
Definition: object_id.h:31
Char_string_template< String_type_allocator > String_type
Definition: string_type.h:51
const mysql_service_registry_t * r
Definition: pfs_example_plugin_employee.cc:86
Definition: m_ctype.h:385
unsigned int uint
Definition: uca9-dump.cc:75