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

Function ParseAttr

x/keys.go:109–111  ·  view source on GitHub ↗

ParseAttr returns the attr from the given value.

(attr string)

Source from the content-addressed store, hash-verified

107
108// ParseAttr returns the attr from the given value.
109func ParseAttr(attr string) string {
110 return strings.SplitN(attr, NsSeparator, 2)[1]
111}
112
113// ParseNamespace returns the namespace from the given value.
114func ParseNamespace(attr string) uint64 {

Callers 15

alterMethod · 0.92
authorizeAlterFunction · 0.92
uidToValFunction · 0.92
showAllPostingsAtFunction · 0.92
upsertUidsMethod · 0.92
splitPredsFunction · 0.92
TestTransactionBasicFunction · 0.92
fieldToStringFunction · 0.92
ToExportKvListFunction · 0.92
TestAclCacheFunction · 0.92
SortOverNetworkFunction · 0.92

Calls

no outgoing calls

Tested by 13

splitPredsFunction · 0.74
TestTransactionBasicFunction · 0.74
TestAclCacheFunction · 0.74
TestDataKeyFunction · 0.68
TestIndexKeyFunction · 0.68
TestIndexKeyWithStartUidFunction · 0.68
TestReverseKeyFunction · 0.68
TestCountKeyFunction · 0.68
TestCountKeyWithStartUidFunction · 0.68
TestSchemaKeyFunction · 0.68