33#ifndef MYSQL_BINLOG_EVENT_LOAD_DATA_EVENTS_H
34#define MYSQL_BINLOG_EVENT_LOAD_DATA_EVENTS_H
49#define DUMPFILE_FLAG 0x1
50#define OPT_ENCLOSED_FLAG 0x2
51#define REPLACE_FLAG 0x4
52#define IGNORE_FLAG 0x8
54#define FIELD_TERM_EMPTY 0x1
55#define ENCLOSED_EMPTY 0x2
56#define LINE_TERM_EMPTY 0x4
57#define LINE_START_EMPTY 0x8
58#define ESCAPED_EMPTY 0x10
236 void print_event_info(std::ostream &)
override {}
237 void print_long_info(std::ostream &)
override {}
280 unsigned int block_len_arg, uint32_t file_id_arg)
341 void print_event_info(std::ostream &)
override {}
342 void print_long_info(std::ostream &)
override {}
389 void print_event_info(std::ostream &)
override {}
390 void print_long_info(std::ostream &)
override {}
This event is created to contain the file data.
Definition: load_data_events.h:274
Append_block_offset
Definition: load_data_events.h:291
@ AB_DATA_OFFSET
Definition: load_data_events.h:294
@ AB_FILE_ID_OFFSET
AB = "Append Block".
Definition: load_data_events.h:293
uint32_t file_id
Definition: load_data_events.h:299
Append_block_event(const char *db_arg, unsigned char *block_arg, unsigned int block_len_arg, uint32_t file_id_arg)
This constructor is used by the MySQL server.
Definition: load_data_events.h:279
~Append_block_event() override=default
const char * db
'db' is filled when the event is created in mysql_load() (the event needs to have a 'db' member to be...
Definition: load_data_events.h:311
unsigned int block_len
Definition: load_data_events.h:298
unsigned char * block
Definition: load_data_events.h:297
Append_block_event(Log_event_type type_arg=APPEND_BLOCK_EVENT)
Definition: load_data_events.h:287
Event for the first block of file to be loaded, its only difference from Append_block event is that t...
Definition: load_data_events.h:358
~Begin_load_query_event() override=default
Begin_load_query_event()
Definition: load_data_events.h:360
This is the abstract base class for binary log events.
Definition: binlog_event.h:851
@ QUERY_HEADER_LEN
Definition: binlog_event.h:868
@ APPEND_BLOCK_HEADER_LEN
Definition: binlog_event.h:874
DELETE_FILE_EVENT occurs when the LOAD DATA failed on the master.
Definition: load_data_events.h:202
uint32_t file_id
Definition: load_data_events.h:214
Delete_file_offset
Definition: load_data_events.h:209
@ DF_FILE_ID_OFFSET
DF = "Delete File".
Definition: load_data_events.h:211
const char * db
Definition: load_data_events.h:215
~Delete_file_event() override=default
Delete_file_event(uint32_t file_id_arg, const char *db_arg)
Definition: load_data_events.h:205
Event responsible for LOAD DATA execution, it similar to Query_event but before executing the query i...
Definition: load_data_events.h:119
Execute_load_query_event(uint32_t file_id_arg, uint32_t fn_pos_start, uint32_t fn_pos_end, enum_load_dup_handling dup)
The constructor is called by MySQL slave, while applying the events.
Definition: load_data_events.cpp:31
uint32_t fn_pos_start
file_id of temporary file
Definition: load_data_events.h:130
uint32_t fn_pos_end
pointer to the part of the query that should be substituted
Definition: load_data_events.h:132
~Execute_load_query_event() override=default
int32_t file_id
Definition: load_data_events.h:129
Execute_load_query_event_offset
Definition: load_data_events.h:121
@ ELQ_FN_POS_END_OFFSET
Definition: load_data_events.h:125
@ ELQ_FILE_ID_OFFSET
ELQ = "Execute Load Query".
Definition: load_data_events.h:123
@ ELQ_DUP_HANDLING_OFFSET
Definition: load_data_events.h:126
@ ELQ_FN_POS_START_OFFSET
Definition: load_data_events.h:124
enum_load_dup_handling dup_handling
pointer to the end of this part of query
Definition: load_data_events.h:140
A Query_event is created for each query that modifies the database, unless the query is logged row-ba...
Definition: statement_events.h:451
Definition: buf0block_hint.cc:30
The namespace contains classes representing events that can occur in a replication stream.
Definition: binlog_event.cpp:38
Log_event_type
Enumeration type for the different types of log events.
Definition: binlog_event.h:278
@ BEGIN_LOAD_QUERY_EVENT
Definition: binlog_event.h:306
@ DELETE_FILE_EVENT
Definition: binlog_event.h:300
@ APPEND_BLOCK_EVENT
Definition: binlog_event.h:299
enum_load_dup_handling
Elements of this enum describe how LOAD DATA handles duplicates.
Definition: load_data_events.h:64
@ LOAD_DUP_IGNORE
Definition: load_data_events.h:66
@ LOAD_DUP_ERROR
Definition: load_data_events.h:65
@ LOAD_DUP_REPLACE
Definition: load_data_events.h:67
Contains the classes representing statement events occurring in the replication stream.
Contains the class Table_id, mainly used for row based replication.