-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix transactions in multithreading contexts (#53)
Changes: - fix transactions with multithreading - stack the transaction backend instances on the transaction stack and remove ACTIVE_TRANSACTIONS (unreliable with multithreading) - bump version - cleanup utils move async helpers to corresponding files - decrease connection counter on failed start calls (transaction) when not using `__aenter__`
- Loading branch information
Showing
9 changed files
with
272 additions
and
273 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from databasez.core import Database, DatabaseURL | ||
|
||
__version__ = "0.10.1" | ||
__version__ = "0.10.2" | ||
|
||
__all__ = ["Database", "DatabaseURL"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from .connection import Connection | ||
from .database import Database, init | ||
from .databaseurl import DatabaseURL | ||
from .transaction import ACTIVE_TRANSACTIONS, Transaction | ||
from .transaction import Transaction | ||
|
||
__all__ = ["Connection", "Database", "init", "DatabaseURL", "Transaction", "ACTIVE_TRANSACTIONS"] | ||
__all__ = ["Connection", "Database", "init", "DatabaseURL", "Transaction"] |
This file contains 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 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
Oops, something went wrong.