-
Notifications
You must be signed in to change notification settings - Fork 438
Open
Description
Asyncpg 0.31.0, installed from pip and running against a local pg database. This is not a deployment issue, but rather an issue w/the check performed by Cursor._check_ready().
Lines 114 to 116 in db8ecc2
| if not self._connection._top_xact: | |
| raise exceptions.NoActiveSQLTransactionError( | |
| 'cursor cannot be created outside of a transaction') |
Working on implementing streaming results for Peewee and I'm running into an issue w/the Cursor _check_ready(). Currently it requires an asyncpg-managed transaction in order to proceed. Is there a reason it doesn't do a similar check to the one here, where it queries is_in_transaction()?
Line 1532 in db8ecc2
| if self._protocol.is_in_transaction() or self._top_xact is not None: |
I'd like to be able to use server-side cursors with Peewee's library-managed transactions.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels