MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / ParseGTIDSet

Function ParseGTIDSet

IceFireDB-SQLProxy/pkg/mysql/mysql/gtid.go:20–29  ·  view source on GitHub ↗
(flavor string, s string)

Source from the content-addressed store, hash-verified

18}
19
20func ParseGTIDSet(flavor string, s string) (GTIDSet, error) {
21 switch flavor {
22 case MySQLFlavor:
23 return ParseMysqlGTIDSet(s)
24 case MariaDBFlavor:
25 return ParseMariadbGTIDSet(s)
26 default:
27 return nil, errors.Errorf("invalid flavor %s", flavor)
28 }
29}

Callers

nothing calls this directly

Calls 2

ParseMysqlGTIDSetFunction · 0.70
ParseMariadbGTIDSetFunction · 0.70

Tested by

no test coverage detected