MCPcopy
hub / github.com/dgraph-io/dgraph / ParseNamespace

Function ParseNamespace

x/keys.go:114–116  ·  view source on GitHub ↗

ParseNamespace returns the namespace from the given value.

(attr string)

Source from the content-addressed store, hash-verified

112
113// ParseNamespace returns the namespace from the given value.
114func ParseNamespace(attr string) uint64 {
115 return strToUint(strings.SplitN(attr, NsSeparator, 2)[0])
116}
117
118func ParseAttrList(attrs []string) []string {
119 var resp []string

Callers 13

deleteNamespaceMethod · 0.92
newSchemaStoreFunction · 0.92
printSummaryFunction · 0.92
validateSchemaFunction · 0.92
populateNamespacesMethod · 0.92
ToExportKvListFunction · 0.92
UpdateMethod · 0.92
ResetTxnsForNsMethod · 0.92
NamespacesMethod · 0.92
DeletePredsForNsMethod · 0.92
IsPreDefTypeChangedFunction · 0.92

Calls 1

strToUintFunction · 0.70

Tested by

no test coverage detected