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

Function NamespaceAttr

x/keys.go:79–81  ·  view source on GitHub ↗

NamespaceAttr is used to generate attr from namespace.

(ns uint64, attr string)

Source from the content-addressed store, hash-verified

77
78// NamespaceAttr is used to generate attr from namespace.
79func NamespaceAttr(ns uint64, attr string) string {
80 return uintToStr(ns) + NsSeparator + attr
81}
82
83func NamespaceAttrList(ns uint64, preds []string) []string {
84 var resp []string

Callers 15

alterMethod · 0.92
doMutateMethod · 0.92
validateMutationFunction · 0.92
addQueryIfUniqueFunction · 0.92
authorizePredsFunction · 0.92
MoveTabletMethod · 0.92
processNQuadMethod · 0.92
lookupUidMethod · 0.92
createPostingsMethod · 0.92
addIndexMapEntriesMethod · 0.92
conflictKeysForNQuadMethod · 0.92

Calls 1

uintToStrFunction · 0.85

Tested by 15

backupRestoreTestFunction · 0.74
TestBackupMinioFunction · 0.74
TestBackupMinioEFunction · 0.74
TestBackupFilesystemFunction · 0.74
TestConvertEdgeTypeFunction · 0.74
populateGraphExportFunction · 0.74
TestToSchemaFunction · 0.74
TestMainFunction · 0.74
TestParseWithNamespaceFunction · 0.74