MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / GetPredicateNames

Function GetPredicateNames

testutil/backup.go:229–231  ·  view source on GitHub ↗

GetPredicateNames returns the list of all the predicates stored in the restored pdir.

(pdir string)

Source from the content-addressed store, hash-verified

227
228// GetPredicateNames returns the list of all the predicates stored in the restored pdir.
229func GetPredicateNames(pdir string) ([]string, error) {
230 return readSchema(pdir, schemaPredicate)
231}
232
233// GetTypeNames returns the list of all the types stored in the restored pdir.
234func GetTypeNames(pdir string) ([]string, error) {

Callers 2

runRestoreFunction · 0.92
CheckSchemaFunction · 0.85

Calls 1

readSchemaFunction · 0.70

Tested by 1

runRestoreFunction · 0.74