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

Method DeleteAll

schema/schema.go:74–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (s *state) DeleteAll() {
75 s.Lock()
76 defer s.Unlock()
77
78 for pred := range s.predicate {
79 delete(s.predicate, pred)
80 }
81
82 for typ := range s.types {
83 delete(s.types, typ)
84 }
85
86 for pred := range s.mutSchema {
87 delete(s.mutSchema, pred)
88 }
89}
90
91// Delete updates the schema in memory and disk
92func (s *state) Delete(attr string, ts uint64) error {

Callers 3

applyMutationsMethod · 0.80
LoadFromDbFunction · 0.80
ParseBytesFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected