Fix: Add AsyncSessionLocal alias for compatibility
This commit is contained in:
@@ -18,6 +18,9 @@ async_session_maker = async_sessionmaker(
|
||||
expire_on_commit=False
|
||||
)
|
||||
|
||||
# Alias for compatibility
|
||||
AsyncSessionLocal = async_session_maker
|
||||
|
||||
# Base class for models
|
||||
Base = declarative_base()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user