parameters: ()
docstring: Run migrations in 'online' mode.
  
      In this scenario we need to create an Engine
      and associate a connection with the context.
docstring_summary: Run migrations in 'online' mode.
docstring_tokens: Run migrations in online mode .
function: def run_migrations_online():
      """Run migrations in 'online' mode.
  
      In this scenario we need to create an Engine
      and associate a connection with the context.
  
      """
      alembic_config = config.get_section(config.config_ini_section)
      alembic_config['sqlalchemy.url'] = database.DbHelper(use_cache=False, owner="Alembic config").get_url_connection_string()
  
      engine = engine_from_config(
                  alembic_config,
                  prefix='sqlalchemy.',
                  poolclass=pool.NullPool)
  
      connection = engine.connect()
      context.configure(
                  connection=connection,
                  target_metadata=target_metadata,
                  compare_type = True
                  )
  
      try:
          with context.begin_transaction():
              context.run_migrations()
      finally:
          connection.close()
function_tokens: def run_migrations_online ( ) : alembic_config = config . get_section ( config . config_ini_section ) alembic_config [ 'sqlalchemy.url' ] = database . DbHelper ( use_cache = False , owner = "Alembic config" ) . get_url_connection_string ( ) engine = engine_from_config ( alembic_config , prefix = 'sqlalchemy.' , poolclass = pool . NullPool ) connection = engine . connect ( ) context . configure ( connection = connection , target_metadata = target_metadata , compare_type = True ) try : with context . begin_transaction ( ) : context . run_migrations ( ) finally : connection . close ( )