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

Function ApplyInitialSchema

worker/embedded.go:40–48  ·  view source on GitHub ↗
(ns, ts uint64)

Source from the content-addressed store, hash-verified

38}
39
40func ApplyInitialSchema(ns, ts uint64) error {
41 for _, su := range schema.InitialSchema(ns) {
42 if err := updateSchema(su, ts); err != nil {
43 return err
44 }
45 }
46 applyInitialTypes(ns, ts)
47 return nil
48}
49
50func applyInitialTypes(ns, ts uint64) {
51 initialTypes := schema.InitialTypes(ns)

Callers

nothing calls this directly

Calls 3

InitialSchemaFunction · 0.92
applyInitialTypesFunction · 0.85
updateSchemaFunction · 0.70

Tested by

no test coverage detected