(flavor string, s string)
| 18 | } |
| 19 | |
| 20 | func 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 | } |
nothing calls this directly
no test coverage detected