mysql_binlog_connector_rust/event/
event_data.rs

1use serde::{Deserialize, Serialize};
2
3use super::{
4    delete_rows_event::DeleteRowsEvent, format_description_event::FormatDescriptionEvent,
5    gtid_event::GtidEvent, previous_gtids_event::PreviousGtidsEvent, query_event::QueryEvent,
6    rotate_event::RotateEvent, rows_query_event::RowsQueryEvent, table_map_event::TableMapEvent,
7    transaction_payload_event::TransactionPayloadEvent, update_rows_event::UpdateRowsEvent,
8    write_rows_event::WriteRowsEvent, xa_prepare_event::XaPrepareEvent, xid_event::XidEvent,
9};
10
11#[derive(Debug, Deserialize, Serialize, Clone)]
12pub enum EventData {
13    NotSupported,
14    FormatDescription(FormatDescriptionEvent),
15    PreviousGtids(PreviousGtidsEvent),
16    Gtid(GtidEvent),
17    Query(QueryEvent),
18    TableMap(TableMapEvent),
19    WriteRows(WriteRowsEvent),
20    UpdateRows(UpdateRowsEvent),
21    DeleteRows(DeleteRowsEvent),
22    Xid(XidEvent),
23    XaPrepare(XaPrepareEvent),
24    Rotate(RotateEvent),
25    TransactionPayload(TransactionPayloadEvent),
26    RowsQuery(RowsQueryEvent),
27    HeartBeat,
28}