DropAll drops all the data in the db
()
| 736 | |
| 737 | // DropAll drops all the data in the db |
| 738 | func (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 |
| 745 | func (gc *GrpcClient) DropPredicate(pred string) error { |