MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.88k stars 399 forks source link

Feature request: Make transaction state public #1130

Open Azmisov opened 6 months ago

Azmisov commented 6 months ago

Can you provide the current transaction's state as a public interface? (started, committed, aborted, etc). I have some code that is doing some more complex transaction management, and needs to check if the transaction has been aborted.