1#ifndef _EVENT_DATA_OBJECTS_H_
2#define _EVENT_DATA_OBJECTS_H_
72#ifdef HAVE_PSI_INTERFACE
92 const char *dbname) = 0;
119 const char *dbname)
override;
148 const char *schema_name)
override;
175 const char *schema_name)
override;
Definition: event_data_objects.h:79
LEX_CSTRING m_event_name
Definition: event_data_objects.h:85
Time_zone * m_time_zone
Definition: event_data_objects.h:88
MEM_ROOT mem_root
Definition: event_data_objects.h:81
LEX_CSTRING m_definer
Definition: event_data_objects.h:86
virtual bool fill_event_info(THD *thd, const dd::Event &ev_obj, const char *dbname)=0
LEX_CSTRING m_schema_name
Definition: event_data_objects.h:84
Definition: event_data_objects.h:156
sql_mode_t m_sql_mode
Definition: event_data_objects.h:162
Event_job_data(const Event_job_data &)=delete
LEX_CSTRING m_definer_host
Definition: event_data_objects.h:160
class Stored_program_creation_ctx * m_creation_ctx
Definition: event_data_objects.h:164
void operator=(Event_job_data &)=delete
LEX_STRING m_definition
Definition: event_data_objects.h:158
LEX_CSTRING m_definer_user
Definition: event_data_objects.h:159
Definition: event_data_objects.h:54
LEX_CSTRING dbname
Definition: event_data_objects.h:61
Event_queue_element_for_exec(const Event_queue_element_for_exec &)=delete
THD * thd
Definition: event_data_objects.h:64
LEX_CSTRING name
Definition: event_data_objects.h:62
void operator=(Event_queue_element_for_exec &)=delete
PSI_statement_info * get_psi_info()
Definition: event_data_objects.h:73
bool dropped
Definition: event_data_objects.h:63
Event_queue_element_for_exec()=default
Definition: event_data_objects.h:95
bool m_starts_null
Definition: event_data_objects.h:105
my_time_t m_ends
Definition: event_data_objects.h:104
longlong m_originator
Definition: event_data_objects.h:99
my_time_t m_execute_at
Definition: event_data_objects.h:102
uint m_execution_count
Definition: event_data_objects.h:114
bool m_execute_at_null
Definition: event_data_objects.h:107
my_time_t m_last_executed
Definition: event_data_objects.h:101
my_time_t m_starts
Definition: event_data_objects.h:103
int m_on_completion
Definition: event_data_objects.h:97
bool m_ends_null
Definition: event_data_objects.h:106
int m_status
Definition: event_data_objects.h:98
interval_type m_interval
Definition: event_data_objects.h:110
longlong m_expression
Definition: event_data_objects.h:109
bool m_dropped
Definition: event_data_objects.h:112
Definition: event_data_objects.h:126
sql_mode_t m_sql_mode
Definition: event_data_objects.h:138
ulonglong m_modified
Definition: event_data_objects.h:136
LEX_CSTRING m_definer_host
Definition: event_data_objects.h:131
LEX_STRING m_definition
Definition: event_data_objects.h:128
class Stored_program_creation_ctx * m_creation_ctx
Definition: event_data_objects.h:140
void operator=(Event_timed &)=delete
ulonglong m_created
Definition: event_data_objects.h:135
LEX_STRING m_definition_utf8
Definition: event_data_objects.h:141
Event_timed(const Event_timed &)=delete
LEX_CSTRING m_definer_user
Definition: event_data_objects.h:130
LEX_STRING m_comment
Definition: event_data_objects.h:133
libevent global state management
Definition: http_common.h:60
Stored_program_creation_ctx – base class for creation context of stored programs (stored routines,...
Definition: sp_head.h:89
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:168
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
This class represents abstract time zone and provides basic interface for MYSQL_TIME <-> my_time_t co...
Definition: tztime.h:49
ulonglong sql_mode_t
Definition: dd_event.h:37
bool event_basic_identifier_equal(LEX_CSTRING db, LEX_CSTRING name, Event_basic *b)
Definition: event_data_objects.cc:1284
void init()
Definition: event_data_objects.cc:303
ulonglong sql_mode_t
Definition: event_data_objects.h:45
Event_queue_element()
Definition: event_data_objects.cc:244
bool event_basic_db_equal(LEX_CSTRING db, Event_basic *et)
Definition: event_data_objects.cc:1266
bool compute_next_execution_time(THD *thd)
Definition: event_data_objects.cc:669
bool construct_drop_event_sql(THD *thd, String *sp_sql, LEX_CSTRING schema_name, LEX_CSTRING event_name)
Get DROP EVENT statement to binlog the drop of ON COMPLETION NOT PRESERVE event.
Definition: event_data_objects.cc:1228
void init_scheduler_psi_keys()
Definition: event_data_objects.cc:83
static PSI_statement_info psi_info
Definition: event_data_objects.h:75
bool fill_event_info(THD *thd, const dd::Event &event, const char *schema_name) override
Definition: event_data_objects.cc:401
~Event_queue_element_for_exec()
Definition: event_data_objects.cc:211
Event_job_data()
Definition: event_data_objects.cc:294
void claim_memory_ownership(bool claim)
Definition: event_data_objects.cc:199
bool init(LEX_CSTRING dbname, LEX_CSTRING name)
Definition: event_data_objects.cc:186
void mark_last_executed(THD *thd)
Set last execution time.
Definition: event_data_objects.cc:863
Event_timed()
Definition: event_data_objects.cc:273
bool construct_sp_sql(THD *thd, String *sp_sql)
Get an artificial stored procedure to parse as an event definition.
Definition: event_data_objects.cc:958
bool fill_event_info(THD *thd, const dd::Event &event, const char *dbname) override
Definition: event_data_objects.cc:346
~Event_queue_element() override
virtual ~Event_basic()
Definition: event_data_objects.cc:235
bool fill_event_info(THD *thd, const dd::Event &event, const char *schema_name) override
Definition: event_data_objects.cc:315
Event_basic()
Definition: event_data_objects.cc:223
bool execute(THD *thd, bool drop)
Compiles and executes the event (the underlying sp_head object)
Definition: event_data_objects.cc:1004
int get_create_event(const THD *thd, String *buf)
Get SHOW CREATE EVENT as string.
Definition: event_data_objects.cc:897
PSI_memory_key key_memory_event_basic_root
Definition: events.cc:1040
bool drop(THD *thd, const Table *tp)
Remove SDI for a table.
Definition: sdi.cc:639
This file follows Google coding style, except for the name MEM_ROOT (which is kept for historical rea...
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
long long int longlong
Definition: my_inttypes.h:55
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Interface for low level time utilities.
interval_type
Available interval types used in any statement.
Definition: my_time.h:455
int64_t my_time_t
Portable time_t replacement.
Definition: my_time_t.h:32
Definition: buf0block_hint.cc:30
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:43
const char * db_name
Definition: rules_table_service.cc:55
Performance schema instrumentation interface.
required string event
Definition: replication_group_member_actions.proto:32
case opt name
Definition: sslopt-case.h:33
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
Statement instrument information.
Definition: psi_statement_bits.h:133
unsigned int uint
Definition: uca9-dump.cc:75