MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / IsValidName

Function IsValidName

internal/utils/kvstore/utils.go:15–17  ·  view source on GitHub ↗

IsValidName check if store name or database name or table name is valid

(name string)

Source from the content-addressed store, hash-verified

13
14// IsValidName check if store name or database name or table name is valid
15func IsValidName(name string) bool {
16 return nameRegexp.MatchString(name)
17}
18
19// RemoveStore remove store directory
20func RemoveStore(path string) error {

Callers 7

TestIsValidNameFunction · 0.92
AddFieldMethod · 0.85
NewStoreFunction · 0.85
NewStoreWithPathFunction · 0.85
OpenStoreDirFunction · 0.85
NewTableFunction · 0.85
NewDBFunction · 0.85

Calls 1

MatchStringMethod · 0.80

Tested by 1

TestIsValidNameFunction · 0.74