Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
70
func
State() *state {
71
return
pstate
72
}
73
74
func
(s *state) DeleteAll() {
75
s.Lock()
Callers
15
parseSchemaFromAlterOperation
Function · 0.92
validateMutation
Function · 0.92
addQueryIfUnique
Function · 0.92
DeleteNamespace
Method · 0.92
RefreshACLs
Function · 0.92
ListNamespaces
Method · 0.92
run
Method · 0.92
WaitForIndexing
Function · 0.92
sortWithoutIndex
Function · 0.92
sortWithIndex
Function · 0.92
processSort
Function · 0.92
intersectBucket
Function · 0.92
Calls
no outgoing calls
Tested by
8
indexTokensForTest
Function · 0.74
TestCountReverseIndexWithData
Function · 0.74
TestCountReverseIndexEmptyPosting
Function · 0.74
TestRebuildTokIndex
Function · 0.74
TestRebuildTokIndexWithDeletion
Function · 0.74
TestRebuildReverseEdges
Function · 0.74
TestSchema
Function · 0.56
TestSchemaIndexCustom
Function · 0.56