Skip to content

When using with sqlmodel, AsyncSession .exec() is not available #27

@trunet

Description

@trunet

I'm getting this error:
AttributeError: 'AsyncSession' object has no attribute 'exec'

When using with sqlmodel, it should:
from sqlmodel.ext.asyncio.session import AsyncSession

instead of:
from sqlalchemy.ext.asyncio.engine import AsyncEngine

See these discussions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions