leaguemanager.services.competition.league

Module Contents

Classes

LeagueService

Handles database operations for league data.

LeagueAsyncService

Handles database operations for league data.

Data

__all__

API

leaguemanager.services.competition.league.__all__

[‘LeagueService’, ‘LeagueAsyncService’]

class leaguemanager.services.competition.league.LeagueService

Bases: leaguemanager.services.base.SQLAlchemySyncRepositoryService

Handles database operations for league data.

class SlugRepo

Bases: advanced_alchemy.repository.SQLAlchemySyncSlugRepository[leaguemanager.models.League]

League repository.

model_type

None

repository_type

None

to_model_on_create(data: leaguemanager.models.ModelT | dict[str, Any]) leaguemanager.models.ModelT
to_model_on_update(data)
class leaguemanager.services.competition.league.LeagueAsyncService

Bases: leaguemanager.services.base.SQLAlchemyAsyncRepositoryService

Handles database operations for league data.

class SlugRepo

Bases: advanced_alchemy.repository.SQLAlchemyAsyncSlugRepository[leaguemanager.models.League]

League repository.

model_type

None

repository_type

None

async to_model_on_create(data: leaguemanager.models.ModelT | dict[str, Any]) leaguemanager.models.ModelT
async to_model_on_update(data)