leaguemanager.db.cli.alembic_cli

Module Contents

Functions

_app

Passes SQLAlchemy configuration to the Click database group within Advanced Alchemy.

Data

settings

app

_configs

click_group

db_app

API

leaguemanager.db.cli.alembic_cli.settings

‘get_settings(…)’

leaguemanager.db.cli.alembic_cli.app

‘Typer(…)’

leaguemanager.db.cli.alembic_cli._configs

[]

leaguemanager.db.cli.alembic_cli._app(ctx: typer.Context)

Passes SQLAlchemy configuration to the Click database group within Advanced Alchemy.

The SQLAlchemySyncConfig and SQLAlchemyAsyncConfig classes that are defined elsewhere are imported here and passed through the Click context. The configuration is accessed by the Advanced Alchemy migration commands.

Args: ctx (typer.Context): The Click context.

leaguemanager.db.cli.alembic_cli.click_group

‘get_command(…)’

leaguemanager.db.cli.alembic_cli.db_app

‘add_migration_commands(…)’