Add support to use Transactions as a context manager. #617
Labels
api: datastore
Issues related to the googleapis/python-ndb API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Branching #505 as it has combined a few sub-issues
Today there is no way to run a transaction in a context manager. This works the way that the original NDB did. Due to the way NDB works (bespoke asynchronicity) it is not a trivial feature to add.
If there is ever a push to enhance NDB beyond simply being a port of the old code, this is potentially something we could look at again.
The text was updated successfully, but these errors were encountered: