Query performa a given query in a new txn
(query string)
| 774 | |
| 775 | // Query performa a given query in a new txn |
| 776 | func (gc *GrpcClient) Query(query string) (*api.Response, error) { |
| 777 | txn := gc.NewTxn() |
| 778 | defer func() { _ = txn.Discard(context.Background()) }() |
| 779 | |
| 780 | ctx, cancel := context.WithTimeout(context.Background(), requestTimeout) |
| 781 | defer cancel() |
| 782 | return txn.Query(ctx, query) |
| 783 | } |
| 784 | |
| 785 | // IsHigherVersion checks whether "higher" is the higher version compared to "lower" |
| 786 | func IsHigherVersion(higher, lower, repoDir string) (bool, error) { |
no outgoing calls