go-mysql-org/go-mysql

Parse GTID String

Closed this issue · 3 comments

How to parse this gtid string into mysql.MysqlGTIDSet?
This string is passed from OnPosSynced event handler, any help?

9f743d3a-6141-11ec-a3ad-005056bc997e:1-235719,982a401-6141-11ec-64de-0050566c8663:1-565078299:565078301

mysql.ParseGTIDSet() or mysql.ParseMysqlGTIDSet()

If this isn't working please add some more details

mysql.ParseGTIDSet() or mysql.ParseMysqlGTIDSet()

If this isn't working please add some more details

Thanks, I'll try this.

It's work!