#NEWLINE# def run_migrations_online( ) : #NEWLINE# #INDENT# "Run migrations in 'online' mode.\n\n    In this scenario we need to create an Engine\n    and associate a connection with the context.\n\n    " #NEWLINE# connectable = config . attributes . get ( 'connection' , None ) #NEWLINE# if ( connectable is None ) : #NEWLINE# #INDENT# connectable = engine_from_config ( config . get_section ( config . config_ini_section ) , prefix = 'sqlalchemy.' , poolclass = pool . NullPool ) #NEWLINE# #UNINDENT# with connectable . connect ( ) as connection : #NEWLINE# #INDENT# context . configure ( connection = connection , target_metadata = target_metadata ) #NEWLINE# with context . begin_transaction ( ) : #NEWLINE# #INDENT# context . run_migrations ( )