-
Notifications
You must be signed in to change notification settings - Fork 158
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
Why transaction support implemented only for SAConnection? #197
Comments
You can run raw SQL transactions by executing |
Yes. But without context manager and nested transaction it is not so comfortable. Do aiopg members have any reasons about this place of transactions code? May someone provide pull request with more generic transaction support? |
If you want to make a PR -- you a welcome |
Hi! |
What features do you need? It is possible to write async context managers in backward compatible way: https://github.com/aio-libs/aiopg/blob/master/aiopg/cursor.py#L380-L403 For what purpose do you need typing? |
* #197 Add transaction model aiopg * add docs
It looks like the issue was resolved by #219 |
I see only dependency from SA in xid generation. Other code uses basic aiopg and plain sql for work with transactions.
The text was updated successfully, but these errors were encountered: