MCPcopy
hub / github.com/rubenv/sql-migrate / NumberPrefixMatches

Method NumberPrefixMatches

migrate.go:153–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153func (m Migration) NumberPrefixMatches() []string {
154 return numberPrefixRegex.FindStringSubmatch(m.Id)
155}
156
157func (m Migration) VersionInt() int64 {
158 v := m.NumberPrefixMatches()[1]

Callers 2

isNumericMethod · 0.95
VersionIntMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected