Commit 7e7c814
feat(spanner): add support for Proto Columns in Connection API (#3123)
* feat: Support for Proto Messages & Enums (#2155)
* feat: Importing Proto Changes
Commit will be reverted, once PROTO changes are available publicly.
* feat: Proto Message Implementation
* feat: Adding support for enum
* feat: Code refactoring
Adding default implementation for newly added methods
ByteArray compatability changes for Proto Messages
* docs: Adding Java docs for all the newly added methods.
* test: Sample Proto & Generated classes for unit test
* feat: Adding bytes/proto & int64/enum compatability
Adding Additional check for ChecksumResultSet
* test: Adding unit tests
* test: Adding unit tests for ValueBinder.java
* feat: refactoring to add support for getValue & other minor changes
* feat: Minor refactoring
1. Adding docs and formatting the code.
2. Adding additional methods for enum and message which accepts descriptors.
* feat: Adding bytes/message & int64/enum compatability in Value
* refactor: Minor refactoring
* feat: Adding Proto Array Implementation
* test: Implementing unit tests for array of protos and enums
* refactor: adding clirr ignores
* feat: Adding support for enum as Primary Key
* feat: Code Review Changes, minor refactoring and adding docs
* feat: Addressing review comments
-Modified Docs/Comments
-Minor Refactoring
* refactor: Using Column instead of column to avoid test failures
* feat: Minor refactoring
-code review comments
-adding function docs
* samples: Adding samples for updating & querying Proto messages & enums (#2211)
* samples: Adding samples for updating & querying Proto messages & enums
* style: linting
* style: linting
* docs: Adding function and class doc
* test: Proto Column Integration tests (#2212)
* test: Adding Integration tests for Proto Messages & Enums
* test: Adding additional test for Parameterized Queries, Primary Keys & Invalid Wire type errors.
* style: Formatting
* style: Formatting
* test: Updating instance and db name
* test: Adding inter compatability check while writing data
* Configured jitpack.yml to use OpenJDK 11 (#2218)
Co-authored-by: Pavol Juhos <[email protected]>
* feat: add support for Proto Columns DDL (#2277)
* feat: add code changes and tests for Proto columns DDL support
* feat: add auto generated code
* feat: code changes and tests for Proto columns DDL support
* feat: add descriptors file
* feat: code refactoring
* feat: Integration tests and code refactoring
* feat: code refactoring
* feat: unit tests and clirr differences
* feat: lint changes
* feat: code refactor
* feat: code refactoring
* feat: code refactoring
* feat: code refactoring
* feat: add java docs to new methods
* feat: lint formatting
* feat: lint formatting changes
* feat: lint formatting
* feat: lint formatting
* feat: test exception cases
* feat: code refactoring
* feat: add java docs and refactoring
* feat: add java docs
* feat: java docs refactor
* feat: remove overload method setProtoDescriptors that accepts file path as input to avoid unexpected issues
* feat: remove updateDdl method overload to update proto descriptor
* teat: update pom file to run tests on cloud-devel region temporarily to validate main branch update
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix: revert host changes in pom.xml file
* feat: add support for Proto Columns to Connection API
* feat: add client side statement support for proto descriptor
* feat: update existing unit tests to include proto descriptorss argument
* feat: code refactor for client side statements
* feat: add unit tests
* feat: code refactoring for file path client statement
* test: add integration test for DDL
* fix: comment refactoring
* feat: move proto descriptor file read logic to ConnectionImpl file to fix autogenerated client side statement tests
* feat: add autogenerated test for new proto columns client side statements
* feat: add unit tests to verify proto descriptor set via filepath
* feat: add review comments
* feat: add client side statement to show proto descriptors file path
* fix: remove proto descriptors file extension validation
* feat: comment refactor
* feat: address review comments
* feat: update tests and revert autogenerated code
* chore: revert autogenerated coee
* chore: revert autogenerated code
* chore: revert autogenerated code
* chore: lint format
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* chore: regenerate descriptors file
* chore: update schema
* chore: update base64 value for protodescriptor
* chore: update copyright year
---------
Co-authored-by: Gaurav Purohit <[email protected]>
Co-authored-by: Pavol Juhos <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>1 parent ae93c57 commit 7e7c814
File tree
23 files changed
+1587
-49
lines changed- google-cloud-spanner
- src
- main
- java/com/google/cloud/spanner
- connection
- resources/com/google/cloud/spanner/connection
- test
- java/com/google/cloud/spanner/connection
- resources/com/google/cloud/spanner/connection
23 files changed
+1587
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
| |||
387 | 393 | | |
388 | 394 | | |
389 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
390 | 402 | | |
391 | 403 | | |
392 | 404 | | |
| |||
656 | 668 | | |
657 | 669 | | |
658 | 670 | | |
659 | | - | |
| 671 | + | |
660 | 672 | | |
661 | 673 | | |
662 | 674 | | |
| |||
668 | 680 | | |
669 | 681 | | |
670 | 682 | | |
671 | | - | |
| 683 | + | |
672 | 684 | | |
673 | 685 | | |
674 | 686 | | |
| |||
688 | 700 | | |
689 | 701 | | |
690 | 702 | | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
691 | 715 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
563 | 565 | | |
564 | 566 | | |
565 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
566 | 610 | | |
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
403 | 404 | | |
404 | 405 | | |
405 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
406 | 426 | | |
407 | 427 | | |
408 | 428 | | |
| |||
Lines changed: 67 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| |||
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
116 | | - | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
268 | 273 | | |
269 | 274 | | |
270 | 275 | | |
271 | | - | |
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
| 279 | + | |
| 280 | + | |
275 | 281 | | |
276 | 282 | | |
277 | 283 | | |
| |||
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
| 362 | + | |
356 | 363 | | |
357 | 364 | | |
358 | 365 | | |
| |||
763 | 770 | | |
764 | 771 | | |
765 | 772 | | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
766 | 819 | | |
767 | 820 | | |
768 | 821 | | |
| |||
1806 | 1859 | | |
1807 | 1860 | | |
1808 | 1861 | | |
| 1862 | + | |
1809 | 1863 | | |
1810 | 1864 | | |
1811 | 1865 | | |
| |||
1862 | 1916 | | |
1863 | 1917 | | |
1864 | 1918 | | |
| 1919 | + | |
1865 | 1920 | | |
1866 | 1921 | | |
1867 | 1922 | | |
| |||
1885 | 1940 | | |
1886 | 1941 | | |
1887 | 1942 | | |
1888 | | - | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
1889 | 1948 | | |
1890 | 1949 | | |
1891 | 1950 | | |
| |||
1985 | 2044 | | |
1986 | 2045 | | |
1987 | 2046 | | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
1988 | 2052 | | |
1989 | 2053 | | |
1990 | 2054 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
141 | 149 | | |
142 | 150 | | |
143 | 151 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
| |||
637 | 641 | | |
638 | 642 | | |
639 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
640 | 674 | | |
641 | 675 | | |
642 | 676 | | |
| |||
0 commit comments