-
Notifications
You must be signed in to change notification settings - Fork 385
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(spanner): add support for RowStream::RowsModified() #10102
Conversation
Soon it will be possible for `Client::ExecuteQuery()` to execute a DML statement (within a read/write transaction) that both modifies and returns data. So, if the result source behind the `RowStream` can produce `ResultSetStats`, we can return the number of rows that were modified. Otherwise, for a normal query, return zero.
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
Codecov ReportBase: 93.96% // Head: 93.96% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #10102 +/- ##
==========================================
- Coverage 93.96% 93.96% -0.01%
==========================================
Files 1513 1513
Lines 139824 139837 +13
==========================================
+ Hits 131391 131399 +8
- Misses 8433 8438 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Add tests and samples for GOOGLE_STANDARD_SQL "THEN RETURN" and POSTGRESQL "RETURNING". Note that `Client::ExecuteQuery()` can now execute a DML statement with a returning clause. Previously we added support for `RowStream::RowsModified()` (googleapis#10102), which is now used here.
Add tests and samples for GOOGLE_STANDARD_SQL "THEN RETURN" and POSTGRESQL "RETURNING". Note that `Client::ExecuteQuery()` can now execute a DML statement with a returning clause. Previously we added support for `RowStream::RowsModified()` (#10102), which is now used here.
Soon it will be possible for
Client::ExecuteQuery()
to execute a DML statement (within a read/write transaction) that both modifies and returns data. So, if the result source behind theRowStream
can produceResultSetStats
, we can return the number of rows that were modified. Otherwise, for a normal query, return zero.This change is