Add backend and frontend skeleton
This commit is contained in:
14
app/backend/core/database.py
Normal file
14
app/backend/core/database.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Database connection placeholders."""
|
||||
|
||||
from contextlib import contextmanager
|
||||
from typing import Iterator
|
||||
|
||||
|
||||
@contextmanager
|
||||
def get_db() -> Iterator[None]:
|
||||
"""
|
||||
Yield a database session placeholder.
|
||||
|
||||
Replace with a real session (e.g., SQLAlchemy) when persistence is added.
|
||||
"""
|
||||
yield None
|
||||
Reference in New Issue
Block a user