Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update canal/handler.go
 update commit of onQueryEvent Co-authored-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
axfor and lance6716 authored Jun 24, 2023
commit 1e774c8bcb8395a34df83a53ebf935b2b815541d
2 changes: 1 addition & 1 deletion canal/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type EventHandler interface {
OnGTID(header *replication.EventHeader, gtid mysql.GTIDSet) error
// OnPosSynced Use your own way to sync position. When force is true, sync position immediately.
OnPosSynced(header *replication.EventHeader, pos mysql.Position, set mysql.GTIDSet, force bool) error
// OnQueryEvent is query event include(create user,drop user,create index event,etd.)
// OnQueryEvent is query event include (create user, drop user, create index, etc.)
// Note: the OnQueryEvent has lower priority than OnDDL event
OnQueryEvent(ev *replication.BinlogEvent, e *replication.QueryEvent, stmt ast.StmtNode, pos *Position) error
String() string
Expand Down