The Querier and AsyncQuerier class being generated expect an SqlAlchemy Connection / AsyncConnection types respectively. They should though also accept Session / AsyncSession. This is simply a matter of typing - they already work with Session and AsyncSession because the interface is the same as far as the querier operations are concerned.
The Querier and AsyncQuerier class being generated expect an SqlAlchemy Connection / AsyncConnection types respectively. They should though also accept Session / AsyncSession. This is simply a matter of typing - they already work with Session and AsyncSession because the interface is the same as far as the querier operations are concerned.