def get_url() -> str:
    """Get the database URL from the environment variables.

    Returns:
    -------
        str: The database URL.

    """
    # Remove load_dotenv since config.py handles this
    # Convert the async URL to sync URL for alembic
    url = str(settings.SQLALCHEMY_ASYNC_DATABASE_URI)
    return url.replace("+asyncpg", "")
Get the database URL from the environment variables.

    Returns:
    -------
        str: The database URL.

    
backend/alembic/env.py