Fix: Add AsyncSessionLocal alias for compatibility
This commit is contained in:
parent
a326d3e963
commit
eab0171a24
@ -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()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user