Allow returning values from transactional functions #3493
Labels
api: spanner
Issues related to the Spanner API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Somebody asks in the Slack:
I believe that this is currently not possible in the Python library, because when you pass a closure to
run_in_transaction
, the return value always gets ignored, and it just returns the commit timestamp.However this is possible in the Cloud Spanner Java library, and being be able to return whatever you want from the body of a transactional function in the case that a transaction successfully commits is extremely useful.
The text was updated successfully, but these errors were encountered: