MagicStack / MagicStack/asyncpg
Feature request: Make transaction state public
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.1k
- Forks
- 468
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by locating asyncpg's transaction implementation and public transaction API, then determine how states such as started, committed, and aborted should be represented and exposed. Done means callers can reliably inspect the current transaction state, with coverage for the requested lifecycle states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100