SetupSchema sets up DQL schema
(dbSchema string)
| 729 | |
| 730 | // SetupSchema sets up DQL schema |
| 731 | func (gc *GrpcClient) SetupSchema(dbSchema string) error { |
| 732 | ctx, cancel := context.WithTimeout(context.Background(), requestTimeout) |
| 733 | defer cancel() |
| 734 | return gc.Alter(ctx, &api.Operation{Schema: dbSchema}) |
| 735 | } |
| 736 | |
| 737 | // DropAll drops all the data in the db |
| 738 | func (gc *GrpcClient) DropAll() error { |