MCPcopy Create free account
hub / github.com/bytebase/bytebase / GTE

Method GTE

backend/plugin/parser/plsql/plsql.go:68–76  ·  view source on GitHub ↗

GTE returns true if the version is greater than or equal to the base version.

(base *Version)

Source from the content-addressed store, hash-verified

66
67// GTE returns true if the version is greater than or equal to the base version.
68func (v *Version) GTE(base *Version) bool {
69 if v.First > base.First {
70 return true
71 }
72 if v.First == base.First {
73 return v.Second >= base.Second
74 }
75 return false
76}
77
78func ParseVersion(banner string) (*Version, error) {
79 re := regexp.MustCompile(`(\d+)\.(\d+)`)

Callers 1

generateSQLForTableFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected