Skip to content

chore(spanner): use Into<BatchDml> as input argument#5701

Open
olavloite wants to merge 1 commit into
googleapis:mainfrom
olavloite:spanner-into-batch-dml
Open

chore(spanner): use Into<BatchDml> as input argument#5701
olavloite wants to merge 1 commit into
googleapis:mainfrom
olavloite:spanner-into-batch-dml

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

Use Into as the input argument for execute_batch_update. This allows an application to pass in a collection of statements, instead of having to manually construct a BatchDml struct.

Use Into<BatchDml> as the input argument for execute_batch_update. This allows
an application to pass in a collection of statements, instead of having to
manually construct a BatchDml struct.
@olavloite olavloite requested review from a team as code owners May 20, 2026 15:55
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the Spanner API. label May 20, 2026
Copy link
Copy Markdown

@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 enhances the execute_batch_update API by allowing it to accept any type that implements Into, such as a vector of SQL strings or a BatchDmlBuilder. New From implementations and comprehensive tests were added to BatchDml and ReadWriteTransaction to support this change. I have no feedback to provide.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.89%. Comparing base (eeb17aa) to head (2f9b912).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5701   +/-   ##
=======================================
  Coverage   97.89%   97.89%           
=======================================
  Files         226      226           
  Lines       55405    55501   +96     
=======================================
+ Hits        54236    54331   +95     
- Misses       1169     1170    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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 Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant