Skip to content

Conversation

@olavloite
Copy link
Collaborator

@olavloite olavloite commented Nov 19, 2025

Adds support for multi-statement SQL strings to SpannerLib. This adds a new exported function NextResultSet that moves the pointer to the next result for a multi-statement SQL string.

It also updates the return type for the gRPC server, so this returns an indication whether the result contains more result sets.

These changes are backwards-compatible with existing implementations for Rows. Wrappers are free to ignore any result sets after the first one.

Updates #572

@olavloite olavloite force-pushed the spanner-lib-multi-statement-support branch 2 times, most recently from 9c50e16 to 4b8855a Compare November 19, 2025 12:52
@olavloite olavloite marked this pull request as ready for review November 19, 2025 13:22
@olavloite olavloite requested a review from a team as a code owner November 19, 2025 13:22
@olavloite
Copy link
Collaborator Author

/gemini review

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for multi-statement SQL strings to SpannerLib, introducing a new NextResultSet function to navigate between result sets. The changes are well-implemented across the Go API, shared library, and gRPC server, with thorough testing. The Java wrappers have also been updated, but I've noted one area for improvement: the gRPC implementation for the Java wrapper is missing the nextResultSet functionality. I've also pointed out a minor issue in the Go API regarding error handling. Overall, this is a solid contribution that adds valuable functionality.

Adds support for multi-statement SQL strings to SpannerLib. This adds a new exported
function NextResultSet that moves the pointer to the next result for a multi-statement
SQL string.

It also updates the return type for the gRPC server, so this returns an indication
whether the result contains more result sets.

These changes are backwards-compatible with existing implementations for Rows. Wrappers
are free to ignore any result sets after the first one.
@olavloite olavloite force-pushed the spanner-lib-multi-statement-support branch from 4b8855a to 6f9ca89 Compare November 19, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant