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: expose underlying *spanner.Client #313

Merged
merged 3 commits into from
Nov 13, 2024
Merged

Conversation

egonelbre
Copy link
Contributor

Sometimes the exposed features of go-sql-spanner are not sufficient to get the necessary response. This adds an escape hatch to access the underlying client.

Fixes #312

Sometimes the exposed features of go-sql-spanner are not sufficient to
get the necessary response. This adds an escape hatch to access the
underlying client.

Fixes googleapis#312
@egonelbre egonelbre requested a review from a team as a code owner November 6, 2024 14:57
Copy link
Collaborator

@olavloite olavloite left a comment

Choose a reason for hiding this comment

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

Thanks for adding this. I would lean towards removing the restriction that the client cannot be gotten when there is an active transaction/batch, but I would like to hear whether you had any specific reasons for adding the restriction?

driver.go Outdated Show resolved Hide resolved
driver.go Outdated Show resolved Hide resolved
egonelbre and others added 2 commits November 12, 2024 23:28
Co-authored-by: Knut Olav Løite <koloite@gmail.com>
@egonelbre
Copy link
Contributor Author

Thanks for adding this. I would lean towards removing the restriction that the client cannot be gotten when there is an active transaction/batch, but I would like to hear whether you had any specific reasons for adding the restriction?

@olavloite I removed the restriction. I initially thought the batching was actively using the client somehow. I think I addressed all the pending questions.

@olavloite olavloite merged commit 29e69c7 into googleapis:main Nov 13, 2024
18 checks passed
@egonelbre egonelbre deleted the expose branch November 13, 2024 14:28
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.

Expose underlying *spanner.Client from SpannerConn
2 participants