INNER CODE UNIT · Python

run_migrations_online

CodeSmile-0000011110110111/LunyScript-RFC · context_portal/alembic/env.py:54

def run_migrations_online() -> None:
    """Run migrations in 'online' mode.

    In this scenario we need to create an Engine
    and associate a connection with the context.

    """
    connectable = engine_from_config(
        config.get_section(config.config_ini_section, {}),
        prefix="sqlalchemy.",
        poolclass=pool.NullPool,
    )

    with connectable.connect() as connection:
        context.configure(
            connection=connection, target_metadata=target_metadata
        )

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…