feat(spanner): add BatchWrite transaction#5502
Open
olavloite wants to merge 3 commits intogoogleapis:mainfrom
Open
feat(spanner): add BatchWrite transaction#5502olavloite wants to merge 3 commits intogoogleapis:mainfrom
olavloite wants to merge 3 commits intogoogleapis:mainfrom
Conversation
Adds the foundations for batch write transactions. The public API will be added in a follow-up pull request.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5502 +/- ##
========================================
Coverage 97.74% 97.74%
========================================
Files 218 219 +1
Lines 48288 48429 +141
========================================
+ Hits 47198 47336 +138
- Misses 1090 1093 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adds support for BatchWrite transactions. BatchWrite can be used to write large numbers of mutations to Spanner. A BatchWrite transaction is not guaranteed to be atomic. However, each MutationGroup in a BatchWrite transaction is guaranteed to be atomic. This change adds a method that returns a stream of responses and delegates all error handling to the application. A follow-up pull request will add a managed execution method that handles errors automatically.
f757e38 to
e79d1e7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for BatchWrite transactions. BatchWrite can be used to write
large numbers of mutations to Spanner. A BatchWrite transaction is not
guaranteed to be atomic. However, each MutationGroup in a BatchWrite
transaction is guaranteed to be atomic.
This change adds a method that returns a stream of responses and delegates
all error handling to the application. A follow-up pull request will add a
managed execution method that handles errors automatically.
Depends on #5499