Implemented fixtures & Implementing Resource pattern

This commit is contained in:
2025-02-11 22:57:11 +01:00
parent ed6be838fe
commit 171875f915
6 changed files with 224 additions and 39 deletions

View File

@@ -15,7 +15,7 @@ def create_db_and_tables():
SQLModel.metadata.create_all(engine)
def drop_tables():
SQLModel.metadata.create_all(engine)
SQLModel.metadata.drop_all(engine)
def get_session() -> Session:
with Session(engine) as session: