Fix: Add AsyncSessionLocal alias for compatibility
This commit is contained in:
1 parent
a326d3e963
commit
eab0171a24
1 file changed
+3
@@ -18,6 +18,9 @@ async_session_maker = async_sessionmaker(
|
|||||||
expire_on_commit=False
|
expire_on_commit=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Alias for compatibility
|
||||||
|
AsyncSessionLocal = async_session_maker
|
||||||
|
|
||||||
# Base class for models
|
# Base class for models
|
||||||
Base = declarative_base()
|
Base = declarative_base()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user