We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 748ca65 commit c0a28d6Copy full SHA for c0a28d6
src/database.py
@@ -1,14 +1,14 @@
1
from sqlmodel import Session, create_engine
2
from sqlmodel.pool import StaticPool
3
4
-from config import settings
+from src.config import settings
5
6
engine = create_engine(
7
settings.DATABASE_URL,
8
poolclass=StaticPool,
9
)
10
11
12
-def get_db():
+def get_session():
13
with Session(engine) as session:
14
yield session
0 commit comments