IsValidPostgresVersion is a helper function to determine if a PostgreSQL version is valid, returning true if the supplied version is valid and false otherwise.
(v string)
| 221 | // IsValidPostgresVersion is a helper function to determine if a PostgreSQL version is valid, returning |
| 222 | // true if the supplied version is valid and false otherwise. |
| 223 | func IsValidPostgresVersion(v string) bool { |
| 224 | if _, ok := ValidPostgresVersions[strings.TrimPrefix(v, Postgres+":")]; !ok { |
| 225 | return false |
| 226 | } |
| 227 | |
| 228 | return true |
| 229 | } |
| 230 | |
| 231 | // GetValidMySQLVersions is a helper function that returns a list of valid MySQL versions. |
| 232 | func GetValidMySQLVersions() []string { |
no outgoing calls
no test coverage detected