Initial commit

This commit is contained in:
2026-06-01 16:48:21 +02:00
commit 53d157535a
159 changed files with 13641 additions and 0 deletions
@@ -0,0 +1,33 @@
"""Postgres stub for VacationDaysRepository.
Implement when switching to Postgres (install asyncpg via `uv sync --extra postgres`).
All methods raise NotImplementedError until then.
"""
from uuid import UUID
from app.entities.vacation_days import VacationDays
from app.repositories.vacation_days_repository import VacationDaysRepository
class PostgresVacationDaysRepository(VacationDaysRepository):
def __init__(self, connection: object) -> None:
self._conn = connection
async def create(self, item: VacationDays) -> VacationDays:
raise NotImplementedError("Postgres repo not yet implemented")
async def get_by_id(self, id: UUID) -> VacationDays | None:
raise NotImplementedError("Postgres repo not yet implemented")
async def update(self, id: UUID, item: VacationDays) -> VacationDays:
raise NotImplementedError("Postgres repo not yet implemented")
async def delete(self, id: UUID) -> None:
raise NotImplementedError("Postgres repo not yet implemented")
async def list(self, **filters: object) -> list[VacationDays]:
raise NotImplementedError("Postgres repo not yet implemented")
async def get_by_parent_year(self, personal_data_uuid: UUID, year: int) -> VacationDays | None:
raise NotImplementedError("Postgres repo not yet implemented")