Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: return generated keys #1310

Merged
merged 25 commits into from
Aug 28, 2023
Merged

feat: return generated keys #1310

merged 25 commits into from
Aug 28, 2023

Conversation

olavloite
Copy link
Collaborator

Adds support for returning generated keys.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Aug 11, 2023
Adds a method to JdbcStatement for appending a THEN RETURN/RETURNING
clause to the statement. This will be used to modify statements that
request generated keys to be returned.
Adds a method for creating a JDBC ResultSet that creates a copy of a
Cloud Spanner ResultSet. This type of ResultSet can be used for small
result sets that are unlikely to be closed by the client application,
such as a ResultSet that holds the generated keys of an update
statement. If an application requests the JDBC driver to return the
generated keys, and then never gets and closes the generated keys
ResultSet, the underlying session and/or result stream could be
leaked.
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: m Pull request size is medium. labels Aug 14, 2023
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Aug 25, 2023
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Aug 25, 2023
@olavloite olavloite marked this pull request as ready for review August 25, 2023 12:51
@olavloite olavloite requested a review from a team as a code owner August 25, 2023 12:51
Co-authored-by: Rajat Bhatta <93644539+rajatbhatta@users.noreply.github.com>
@olavloite olavloite added the automerge Merge the pull request once unit tests and other checks pass. label Aug 28, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit 9b5ab37 into main Aug 28, 2023
22 checks passed
@gcf-merge-on-green gcf-merge-on-green bot deleted the return-generated-keys branch August 28, 2023 11:38
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants