|
|
@ -77,6 +77,9 @@ func (h *MyEventHandler) OnRow(e *canal.RowsEvent) error { |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// string
|
|
|
|
|
|
func (h *MyEventHandler) String() string { return "MyEventHandler" } |
|
|
|
|
|
|
|
|
// 处理DDL事件
|
|
|
// 处理DDL事件
|
|
|
// func (h *MyEventHandler) OnDDL(nextPos mysql.Position, queryEvent *replication.QueryEvent) error {
|
|
|
// func (h *MyEventHandler) OnDDL(nextPos mysql.Position, queryEvent *replication.QueryEvent) error {
|
|
|
// sql := string(queryEvent.Query)
|
|
|
// sql := string(queryEvent.Query)
|
|
|
|