generated from john/python-template
V2 step 2 complete
This commit is contained in:
@@ -31,6 +31,7 @@ def session():
|
||||
connect_args={"check_same_thread": False},
|
||||
poolclass=StaticPool,
|
||||
)
|
||||
SQLModel.metadata.drop_all(engine)
|
||||
SQLModel.metadata.create_all(engine)
|
||||
with Session(engine) as sync_session:
|
||||
yield sync_session
|
||||
|
||||
Reference in New Issue
Block a user