MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / isValidDatabaseID

Function isValidDatabaseID

sqlchain/adapter/api/utils.go:63–69  ·  view source on GitHub ↗
(dbID string)

Source from the content-addressed store, hash-verified

61}
62
63func isValidDatabaseID(dbID string) error {
64 if !dbIDRegex.MatchString(dbID) {
65 return errors.New("invalid database id")
66 }
67
68 return nil
69}
70
71func parseForm(r *http.Request) (qm *queryMap, err error) {
72 ct := r.Header.Get("Content-Type")

Callers 2

getDatabaseIDFunction · 0.85
parseFormFunction · 0.85

Calls 1

NewMethod · 0.65

Tested by

no test coverage detected