Documentation ¶
Index ¶
- func CheckGTIDSetEmpty(gSet mysql.GTIDSet) bool
- func IsZeroMariaDBGTIDSet(gStr string) bool
- func IsZeroMySQLGTIDSet(gStr string) bool
- func MustZeroGTIDSet(flavor string) mysql.GTIDSet
- func ParserGTID(flavor, gtidStr string) (mysql.GTIDSet, error)
- func ZeroGTIDSet(flavor string) (mysql.GTIDSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGTIDSetEmpty ¶
CheckGTIDSetEmpty is used to check whether a GTID set is zero.
func IsZeroMariaDBGTIDSet ¶
IsZeroMariaDBGTIDSet is used to meet this usage: when user wants to start binlog replication from scratch, a "uuid:0" (MySQL flavor) or "0-0-0" (mariaDB) GTID set must be written, in order to distinguish that user forgets to write it.
For MariaDB, the GTID set like "0-0-0" will confuse IsZeroGTIDSet function, so we also need to check the interval part.
func IsZeroMySQLGTIDSet ¶
IsZeroMySQLGTIDSet is used to meet this usage: when user wants to start binlog replication from scratch, a "uuid:0" (MySQL flavor) or "0-0-0" (mariaDB) GTID set must be written, in order to distinguish that user forgets to write it.
func MustZeroGTIDSet ¶
MustZeroGTIDSet is used when you can make sure the flavor is valid.
func ParserGTID ¶
ParserGTID parses GTID from string. If the flavor is not specified, it will try mysql GTID first and then MariaDB GTID.
Types ¶
This section is empty.