Module ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad TryFinally body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list If Call AttributeLoad NameLoad attr body Expr Call NameLoad orelse Expr Call NameLoad
N/A __future__ print_function unicode_literals __future__ with_statement alembic context sqlalchemy engine_from_config pool logging.config fileConfig N/A config N/A context config N/A N/A fileConfig N/A config config_file_name N/A target_metadata None run_migrations_offline N/A N/A N/A N/A N/A Run migrations in 'offline' mode.

    This configures the context with just a URL
    and not an Engine, though an Engine is acceptable
    here as well.  By skipping the Engine creation
    we don't even need a DBAPI to be available.

    Calls to context.execute() here emit the given string to the
    script output.

     N/A url N/A N/A config get_main_option sqlalchemy.url N/A N/A N/A context configure url url N/A N/A N/A context begin_transaction N/A N/A N/A N/A context run_migrations N/A run_migrations_online N/A N/A N/A N/A N/A Run migrations in 'online' mode.

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

     N/A engine N/A engine_from_config N/A N/A config get_section N/A config config_ini_section prefix sqlalchemy. poolclass N/A pool NullPool N/A connection N/A N/A engine connect N/A N/A N/A context configure connection connection target_metadata target_metadata N/A N/A N/A N/A N/A context begin_transaction N/A N/A N/A N/A context run_migrations N/A N/A N/A N/A connection close N/A N/A N/A N/A context is_offline_mode N/A N/A N/A run_migrations_offline N/A N/A N/A run_migrations_online