Commit 8ba9a34
authored
Introduce Query.Options object and add
## What is the goal of this PR?
We introduce the Query `Options` message, which now contains `explain` flag on a query to ensure that the server knows when to cache explanations only when the user requests it. Using `oneof` as the optional syntax is adopted instead of using the NULL message, which will be removed elsewhere as well in the future.
## What are the changes implemented in this PR?
* Add `explain` boolean option to `new Transaction.Query.Options`, that defaults to False
* Add `Transaction.Query.Options` that now wraps the `infer` and `explain` boolean flagsexplain option (#36)1 parent 4ad2dfe commit 8ba9a34
1 file changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
149 | 147 | | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| |||
0 commit comments