IsValidMySQLVersion is a helper function to determine if a MySQL version is valid, returning true if the supplied version is valid and false otherwise.
(v string)
| 200 | // IsValidMySQLVersion is a helper function to determine if a MySQL version is valid, returning |
| 201 | // true if the supplied version is valid and false otherwise. |
| 202 | func IsValidMySQLVersion(v string) bool { |
| 203 | if _, ok := ValidMySQLVersions[strings.TrimPrefix(v, MySQL+":")]; !ok { |
| 204 | return false |
| 205 | } |
| 206 | |
| 207 | return true |
| 208 | } |
| 209 | |
| 210 | // GetValidMariaDBVersions is a helper function that returns a list of valid MariaDB versions. |
| 211 | func GetValidMariaDBVersions() []string { |
no outgoing calls
no test coverage detected