Skip to content

repository

zeus.optimizer.batch_size.server.database.repository

Database repository (directly interacting with db) base class.

DatabaseRepository

Base class for all repositories.

Source code in zeus/optimizer/batch_size/server/database/repository.py
11
12
13
14
15
16
class DatabaseRepository:
    """Base class for all repositories."""

    def __init__(self, session: AsyncSession) -> None:
        """Initizalize session."""
        self.session = session

__init__

__init__(session)
Source code in zeus/optimizer/batch_size/server/database/repository.py
14
15
16
def __init__(self, session: AsyncSession) -> None:
    """Initizalize session."""
    self.session = session