"""Small repository helpers."""

from __future__ import annotations

from typing import TypeVar

from sqlalchemy.ext.asyncio import AsyncSession

from app.database.session import Database

T = TypeVar("T")


class BaseRepository:
    def __init__(self, db: Database) -> None:
        self.db = db

    async def _session(self) -> AsyncSession:
        raise NotImplementedError
