MCPcopy Create free account
hub / github.com/ddev/ddev / IsValidPostgresVersion

Function IsValidPostgresVersion

pkg/nodeps/values.go:223–229  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
223func 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.
232func GetValidMySQLVersions() []string {

Callers 1

IsValidDatabaseVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected