-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ``sessionmaker`` replaced on ``async_sessionmaker``
- Loading branch information
1 parent
891ec68
commit 2deeb0c
Showing
10 changed files
with
30 additions
and
25 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
from typing import Awaitable, Callable, Iterable, Tuple, Union | ||
|
||
from aiohttp.web import StreamResponse | ||
from sqlalchemy.ext.asyncio import AsyncEngine | ||
from sqlalchemy.orm import Session, sessionmaker | ||
from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession, async_sessionmaker | ||
|
||
THandler = Callable[..., Awaitable[StreamResponse]] | ||
THandlerWrapper = Callable[..., THandler] | ||
|
||
TTarget = Union[str, AsyncEngine, sessionmaker[Session]] | ||
TBind = Tuple[sessionmaker[Session], str, bool] | ||
TTarget = Union[str, AsyncEngine, async_sessionmaker[AsyncSession]] | ||
TBind = Tuple[async_sessionmaker[AsyncSession], str, bool] | ||
TBinds = Iterable[TBind] |
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
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
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