Commit 0da5f78
feat(spanner): add Client Context support to options (#1499)
Re-opening #1495 due to permissions issues.
Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/python-spanner/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Fixes #<issue_number_goes_here> 🦕
---------
Co-authored-by: Knut Olav Løite <koloite@gmail.com>1 parent 0c4c5da commit 0da5f78Copy full SHA for 0da5f78
21 files changed
+785-76Lines changed: 785 additions & 76 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-cloud-spanner
- google/cloud/spanner_v1
- types
- tests/unit
- spanner_dbapi
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py
Copy file name to clipboardExpand all lines: packages/google-cloud-spanner/google/cloud/spanner_v1/__init__.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
| 41 | + |
41 | 42 | |
42 | 43 | |
43 | 44 | |
| ||
110 | 111 | |
111 | 112 | |
112 | 113 | |
| 114 | + |
113 | 115 | |
114 | 116 | |
115 | 117 | |
|
Collapse file
packages/google-cloud-spanner/google/cloud/spanner_v1/_helpers.py
Copy file name to clipboardExpand all lines: packages/google-cloud-spanner/google/cloud/spanner_v1/_helpers.py+93-2Lines changed: 93 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
| 37 | + |
| 38 | + |
37 | 39 | |
38 | 40 | |
39 | 41 | |
| ||
172 | 174 | |
173 | 175 | |
174 | 176 | |
175 | | - |
| 177 | + |
176 | 178 | |
177 | 179 | |
178 | 180 | |
179 | 181 | |
180 | 182 | |
181 | 183 | |
182 | 184 | |
183 | | - |
| 185 | + |
184 | 186 | |
185 | 187 | |
186 | 188 | |
| ||
191 | 193 | |
192 | 194 | |
193 | 195 | |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
| 212 | + |
| 213 | + |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | + |
| 230 | + |
| 231 | + |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
| 236 | + |
| 237 | + |
| 238 | + |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | + |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | + |
| 253 | + |
| 254 | + |
| 255 | + |
| 256 | + |
| 257 | + |
| 258 | + |
| 259 | + |
| 260 | + |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
194 | 285 | |
195 | 286 | |
196 | 287 | |
|
Collapse file
packages/google-cloud-spanner/google/cloud/spanner_v1/batch.py
Copy file name to clipboardExpand all lines: packages/google-cloud-spanner/google/cloud/spanner_v1/batch.py+35-6Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
| 31 | + |
| 32 | + |
| 33 | + |
31 | 34 | |
32 | 35 | |
33 | 36 | |
| ||
37 | 40 | |
38 | 41 | |
39 | 42 | |
| 43 | + |
40 | 44 | |
41 | 45 | |
42 | 46 | |
| ||
47 | 51 | |
48 | 52 | |
49 | 53 | |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
50 | 59 | |
51 | 60 | |
52 | | - |
| 61 | + |
53 | 62 | |
54 | 63 | |
55 | 64 | |
| ||
58 | 67 | |
59 | 68 | |
60 | 69 | |
| 70 | + |
61 | 71 | |
62 | 72 | |
63 | 73 | |
| ||
227 | 237 | |
228 | 238 | |
229 | 239 | |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
230 | 245 | |
231 | 246 | |
232 | | - |
233 | | - |
| 247 | + |
234 | 248 | |
235 | 249 | |
236 | 250 | |
| ||
317 | 331 | |
318 | 332 | |
319 | 333 | |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
320 | 339 | |
321 | 340 | |
322 | | - |
| 341 | + |
323 | 342 | |
324 | 343 | |
325 | 344 | |
326 | 345 | |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
| 352 | + |
327 | 353 | |
328 | 354 | |
329 | 355 | |
| ||
365 | 391 | |
366 | 392 | |
367 | 393 | |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
368 | 399 | |
369 | 400 | |
370 | | - |
371 | | - |
372 | 401 | |
373 | 402 | |
374 | 403 | |
|
Collapse file
packages/google-cloud-spanner/google/cloud/spanner_v1/client.py
Copy file name to clipboardExpand all lines: packages/google-cloud-spanner/google/cloud/spanner_v1/client.py+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
| 58 | + |
58 | 59 | |
59 | 60 | |
60 | 61 | |
| ||
228 | 229 | |
229 | 230 | |
230 | 231 | |
| 232 | + |
| 233 | + |
| 234 | + |
| 235 | + |
231 | 236 | |
232 | 237 | |
233 | 238 | |
| ||
278 | 283 | |
279 | 284 | |
280 | 285 | |
| 286 | + |
281 | 287 | |
282 | 288 | |
283 | 289 | |
| ||
324 | 330 | |
325 | 331 | |
326 | 332 | |
| 333 | + |
327 | 334 | |
328 | 335 | |
329 | 336 | |
|
0 commit comments