MySQL 8.0.39
Source Code Documentation
rows_event.h File Reference

Contains the classes representing events which are used for row based replication. More...

#include <vector>
#include "control_events.h"
#include "table_id.h"

Go to the source code of this file.

Classes

class  binary_log::Table_map_event
 In row-based mode, every row operation event is preceded by a Table_map_event which maps a table definition to a number. More...
 
struct  binary_log::Table_map_event::Optional_metadata_fields
 Metadata_fields organizes m_optional_metadata into a structured format which is easy to access. More...
 
struct  binary_log::Table_map_event::Optional_metadata_fields::Default_charset
 
class  binary_log::Rows_event
 Common base class for all row-containing binary log events. More...
 
class  binary_log::Rows_event::Extra_row_info
 
class  binary_log::Write_rows_event
 Log row insertions. More...
 
class  binary_log::Update_rows_event
 Log row updates with a before image. More...
 
class  binary_log::Delete_rows_event
 Log row deletions. More...
 
class  binary_log::Rows_query_event
 Rows query event type, which is a subclass of the Ignorable_event, to record the original query for the rows events in RBR. More...
 

Namespaces

namespace  binary_log
 The namespace contains classes representing events that can occur in a replication stream.
 

Macros

#define EXTRA_ROW_INFO_LEN_OFFSET   0
 1 byte length, 1 byte format Length is total length in bytes, including 2 byte header Length values 0 and 1 are currently invalid and reserved. More...
 
#define EXTRA_ROW_INFO_FORMAT_OFFSET   1
 
#define EXTRA_ROW_INFO_HEADER_LENGTH   2
 
#define EXTRA_ROW_INFO_MAX_PAYLOAD   (255 - EXTRA_ROW_INFO_HEADER_LENGTH)
 
#define ROWS_MAPID_OFFSET   0
 
#define ROWS_FLAGS_OFFSET   6
 
#define ROWS_VHLEN_OFFSET   8
 
#define EXTRA_ROW_INFO_TYPECODE_LENGTH   1
 
#define EXTRA_ROW_PART_INFO_VALUE_LENGTH   2
 

Enumerations

enum class  enum_extra_row_info_typecode { enum_extra_row_info_typecode::NDB = 0 , enum_extra_row_info_typecode::PART = 1 }
 This is the typecode defined for the different elements present in the container Extra_row_info, this is different from the format information stored inside extra_row_ndb_info at EXTRA_ROW_INFO_FORMAT_OFFSET. More...
 

Detailed Description

Contains the classes representing events which are used for row based replication.

In row-based replication, the master writes events to the binary log that indicate how individual table rows are changed.