summaryrefslogtreecommitdiff
path: root/examples/asyncio/gather_orm_statements.py
Commit message (Collapse)AuthorAgeFilesLines
* establish sessionmaker and async_sessionmaker as genericMike Bayer2022-05-311-7/+4
| | | | | | | | | | | This is so that custom Session and AsyncSession classes can be typed for these factories. Added appropriate typevars to `__call__()`, `__enter__()` and other methods so that a custom Session or AsyncSession subclass is carried through. Fixes: #7656 Change-Id: Ia2b8c1f22b4410db26005c3285f6ba3d13d7f0e0
* add asyncio.gather() example; add connection optsMike Bayer2021-09-021-0/+118
while I dont like this approach very much, people will likely be asking for it a lot, so represent the most correct and efficient form we can handle right now. Added missing ``**kw`` arguments to the :meth:`_asyncio.AsyncSession.connection` method. Change-Id: Idadae2a02a4d96ecb96a5723ce64d017ab4c6217 References: https://github.com/sqlalchemy/sqlalchemy/discussions/6965