Skip to content

Async mode in miniapps/fastapi-sqlalchemy does not work #674

Open
@mitgate

Description

@mitgate

Is there any way to turn miniapps/fastapi-sqlalchemy to async ?

Im using postgresql+asyncpg on connection

replaced all classes with async ones..

from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession, async_scoped_session, async_sessionmaker

and the error when starting a session is

async with self.session_factory() as session:
AttributeError: aenter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions