Skip to content

Commit 9ebf40a

Browse files
author
Varun Chawla
committed
Export AsyncSession from sqlmodel.ext.asyncio module
AsyncSession was defined in sqlmodel/ext/asyncio/session.py but not exported from the module's __init__.py, requiring users to use the longer import path. Before: from sqlmodel.ext.asyncio.session import AsyncSession After: from sqlmodel.ext.asyncio import AsyncSession This makes the async API more discoverable and consistent with how Session is exported from sqlmodel.orm.
1 parent b707f49 commit 9ebf40a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sqlmodel/ext/asyncio/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .session import AsyncSession as AsyncSession

0 commit comments

Comments
 (0)