This repository was archived by the owner on Aug 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 264
fix: incorrect concurrent usage of connection and transaction #546
Merged
Merged
Changes from 12 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
90c33da
fix: incorrect concurrent usage of connection and transaction
zevisert bea6629
refactor: rename contextvar class attributes, add some explaination c…
zevisert c9e3464
fix: contextvar.get takes no keyword arguments
zevisert f3078aa
test: add concurrent task tests
zevisert 75969d3
feat: use ContextVar[dict] to track connections and transactions per …
zevisert 4cd7451
test: check multiple databases in the same task use independant conne…
zevisert e4c95a7
chore: changes for linting and typechecking
zevisert a38e135
chore: use typing.Tuple for lower python version compatibility
zevisert 460f72e
docs: update comment on _connection_contextmap
zevisert 2d4554d
Update `Connection` and `Transaction` to be robust to concurrent use
zanieb 16403c3
Merge remote-tracking branch 'madkinsz/example/instance-safe' into fi…
zevisert 8370299
chore: remove optional annotation on asyncio.Task
zevisert 1d4896f
test: add new tests for upcoming contextvar inheritance/isolation and…
zevisert 02a9acb
feat: reimplement concurrency system with contextvar and weakmap
zevisert 0f93807
chore: apply corrections from linters
zevisert f091482
fix: quote WeakKeyDictionary typing for python<=3.7
zevisert 6fb55a5
docs: add examples for async transaction context and nested transactions
zevisert 6de4f60
Merge remote-tracking branch 'upstream/master' into fix-transaction-c…
zevisert b94f097
fix: remove connection inheritance, add more tests, update docs
zevisert 0a9e9e5
Merge branch 'master' into fix-transaction-contextvar
zanieb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.