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

Function CompleteInitialSchema

schema/schema.go:767–769  ·  view source on GitHub ↗

CompleteInitialSchema returns all the schema updates regardless of the worker options. This is useful in situations where the worker options are not known in advance and it's better to create all the reserved predicates and remove them later than miss some of them. An example of such situation is du

(namespace uint64)

Source from the content-addressed store, hash-verified

765// them later than miss some of them. An example of such situation is during bulk
766// loading.
767func CompleteInitialSchema(namespace uint64) []*pb.SchemaUpdate {
768 return initialSchemaInternal(namespace, true)
769}
770
771func initialSchemaInternal(namespace uint64, all bool) []*pb.SchemaUpdate {
772 var initialSchema []*pb.SchemaUpdate

Callers 2

Calls 1

initialSchemaInternalFunction · 0.85

Tested by

no test coverage detected