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

Function IsValidMySQLVersion

pkg/nodeps/values.go:202–208  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
202func 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.
211func GetValidMariaDBVersions() []string {

Callers 2

IsValidDatabaseVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected