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

Function GetTypeNames

testutil/backup.go:234–236  ·  view source on GitHub ↗

GetTypeNames returns the list of all the types stored in the restored pdir.

(pdir string)

Source from the content-addressed store, hash-verified

232
233// GetTypeNames returns the list of all the types stored in the restored pdir.
234func GetTypeNames(pdir string) ([]string, error) {
235 return readSchema(pdir, schemaType)
236}
237
238// CheckSchema checks the names of the predicates and types in the schema against the given names.
239func CheckSchema(t *testing.T, preds, types []string) {

Callers 2

runRestoreFunction · 0.92
CheckSchemaFunction · 0.85

Calls 1

readSchemaFunction · 0.70

Tested by 1

runRestoreFunction · 0.74