From 9fa73737281361ac35b6858db255b5835be141ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Wed, 20 Nov 2024 10:20:14 +0100 Subject: [PATCH] Update example about GTID --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c9b47db34..54b8cabcb 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,10 @@ syncer := replication.NewBinlogSyncer(cfg) streamer, _ := syncer.StartSync(mysql.Position{binlogFile, binlogPos}) // or you can start a gtid replication like +// gtidSet, _ := mysql.ParseGTIDSet(mysql.MySQLFlavor, "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2") // streamer, _ := syncer.StartSyncGTID(gtidSet) -// the mysql GTID set likes this "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2" -// the mariadb GTID set likes this "0-1-100" +// the mysql GTID set is like this "de278ad0-2106-11e4-9f8e-6edd0ca20947:1-2" and uses mysql.MySQLFlavor +// the mariadb GTID set is like this "0-1-100" and uses mysql.MariaDBFlavor for { ev, _ := streamer.GetEvent(context.Background())