MCPcopy Index your code
hub / github.com/perkeep/perkeep / SchemaVersion

Method SchemaVersion

pkg/sorted/postgres/postgreskv.go:160–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160func (kv *keyValue) SchemaVersion() (version int, err error) {
161 err = kv.db.QueryRow("SELECT value FROM meta WHERE metakey='version'").Scan(&version)
162 return
163}
164
165var validDatabaseRegex = regexp.MustCompile(`^[a-zA-Z0-9\-_]+$`)
166

Callers 2

pingMethod · 0.95

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected