Skip to content

spanner-jdbc: Step 03 - Generic connection interface - #5807

Merged
kolea2 merged 7 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-03-generic-connection-interface
Jul 24, 2019
Merged

spanner-jdbc: Step 03 - Generic connection interface#5807
kolea2 merged 7 commits into
googleapis:spanner-jdbcfrom
olavloite:spanner-jdbc-03-generic-connection-interface

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

The JDBC driver is built on top of a generic connection based API. This PR adds the interface for this generic API. The interface itself is package-private, as it is not intended for end users. The TransactionRetryListener interface is public, as these listeners can also be added for a JDBC connection.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 23, 2019
@olavloite
olavloite marked this pull request as ready for review July 23, 2019 11:48
@olavloite
olavloite requested a review from kolea2July 23, 2019 11:49
* @return a string representation of this {@link AutocommitDmlMode} that can be used in a SQL
* statement.
*/
public String statementString() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change to getStatementString?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to getStatementString

@kolea2kolea2 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 23, 2019
@olavloite
olavloiteforce-pushed the spanner-jdbc-03-generic-connection-interface branch from 9c483d1 to 438f8e6CompareJuly 23, 2019 15:22
@yoshi-kokoroyoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 23, 2019
@codecov

codecovBot commented Jul 24, 2019

Copy link
Copy Markdown

Codecov Report

Merging #5807 into spanner-jdbc will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@ Coverage Diff @@## spanner-jdbc #5807 +/- ##
==================================================
+ Coverage 46.12% 46.12% +<.01% 
Complexity 24189 24189 ==================================================
Files 2456 2456 Lines 262236 262236 Branches 29602 29602 ==================================================
+ Hits 120949 120959 +10 + Misses 132175 132166 -9 + Partials 9112 9111 -1
Impacted FilesCoverage ΔComplexity Δ
...ain/java/com/google/cloud/pubsub/v1/Publisher.java89.78% <0%> (+0.35%)40% <0%> (ø)⬇️
...gle/cloud/pubsub/v1/SequentialExecutorService.java90.8% <0%> (+3.44%)0% <0%> (ø)⬇️
.../cloud/datastore/testing/LocalDatastoreHelper.java85.07% <0%> (+4.47%)17% <0%> (ø)⬇️
.../java/com/google/cloud/testing/CommandWrapper.java96.96% <0%> (+9.09%)13% <0%> (ø)⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ae46c78...e2ad02e. Read the comment docs.

@kolea2
kolea2 merged commit dcd7fd2 into googleapis:spanner-jdbcJul 24, 2019
olavloite added a commit to olavloite/google-cloud-java that referenced this pull request Aug 5, 2019
* create jdbc project
* added spanner-jdbc to versions
* add interfaces for client side statements
* changed prerequisiteStatements to examplePrequisiteStatements
* add generic connection interface
* changed to normal getter name
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@olavloite@kolea2@googlebot@yoshi-kokoro