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

Function State

schema/schema.go:70–72  ·  view source on GitHub ↗

State returns the struct holding the current schema.

()

Source from the content-addressed store, hash-verified

68
69// State returns the struct holding the current schema.
70func State() *state {
71 return pstate
72}
73
74func (s *state) DeleteAll() {
75 s.Lock()

Callers 15

validateMutationFunction · 0.92
addQueryIfUniqueFunction · 0.92
DeleteNamespaceMethod · 0.92
RefreshACLsFunction · 0.92
ListNamespacesMethod · 0.92
runMethod · 0.92
WaitForIndexingFunction · 0.92
sortWithoutIndexFunction · 0.92
sortWithIndexFunction · 0.92
processSortFunction · 0.92
intersectBucketFunction · 0.92

Calls

no outgoing calls

Tested by 8

indexTokensForTestFunction · 0.74
TestRebuildTokIndexFunction · 0.74
TestRebuildReverseEdgesFunction · 0.74
TestSchemaFunction · 0.56
TestSchemaIndexCustomFunction · 0.56