Move SessionType to base module
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
from sqlalchemy.orm import DeclarativeBase
|
||||
from sqlalchemy.orm import DeclarativeBase, Session, scoped_session
|
||||
|
||||
|
||||
SessionType = scoped_session[Session]
|
||||
|
||||
class ModelBase(DeclarativeBase):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user