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

Method DropAll

dgraphapi/cluster.go:738–742  ·  view source on GitHub ↗

DropAll drops all the data in the db

()

Source from the content-addressed store, hash-verified

736
737// DropAll drops all the data in the db
738func (gc *GrpcClient) DropAll() error {
739 ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
740 defer cancel()
741 return gc.Alter(ctx, &api.Operation{DropAll: true})
742}
743
744// DropPredicate drops the predicate from the data in the db
745func (gc *GrpcClient) DropPredicate(pred string) error {

Callers 15

TestNamespacesFunction · 0.80
TestDropNamespaceErrFunction · 0.80
TestDropAllFunction · 0.80
TestDropDataFunction · 0.80
TestDropPredicateFunction · 0.80
TestDropTypeFunction · 0.80
TestCountIndexSerialTxnsFunction · 0.80
TestCountIndexSameTxnFunction · 0.80
setUpDgraphFunction · 0.80

Calls 1

AlterMethod · 0.80

Tested by 15

TestNamespacesFunction · 0.64
TestDropNamespaceErrFunction · 0.64
TestDropAllFunction · 0.64
TestDropDataFunction · 0.64
TestDropPredicateFunction · 0.64
TestDropTypeFunction · 0.64
TestCountIndexSerialTxnsFunction · 0.64
TestCountIndexSameTxnFunction · 0.64
setUpDgraphFunction · 0.64