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

Function IsDropOpKey

x/keys.go:622–632  ·  view source on GitHub ↗
(key []byte)

Source from the content-addressed store, hash-verified

620}
621
622func IsDropOpKey(key []byte) (bool, error) {
623 pk, err := Parse(key)
624 if err != nil {
625 return false, errors.Wrapf(err, "could not parse key %s", hex.Dump(key))
626 }
627
628 if pk.IsData() && ParseAttr(pk.Attr) == "dgraph.drop.op" {
629 return true, nil
630 }
631 return false, nil
632}
633
634// These predicates appear for queries that have * as predicate in them.
635var starAllPredicateMap = map[string]struct{}{

Callers 1

checkAndGetDropOpFunction · 0.92

Calls 3

ParseAttrFunction · 0.85
IsDataMethod · 0.80
ParseFunction · 0.70

Tested by

no test coverage detected