Skip to content
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

Add support to use Transactions as a context manager. #617

Open
crwilcox opened this issue Feb 26, 2021 · 0 comments
Open

Add support to use Transactions as a context manager. #617

crwilcox opened this issue Feb 26, 2021 · 0 comments
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.

Comments

@crwilcox
Copy link
Collaborator

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.

@crwilcox crwilcox added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Feb 26, 2021
@product-auto-label product-auto-label bot added the api: datastore Issues related to the googleapis/python-ndb API. label Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant