

def run_migrations_offline():
    "Run migrations in 'offline' mode.\n\n    This configures the context with just a URL\n    and not an Engine, though an Engine is acceptable\n    here as well.  By skipping the Engine creation\n    we don't even need a DBAPI to be available.\n\n    Calls to context.execute() here emit the given string to the\n    script output.\n\n    "
    engines = {
        
    }
    for name in re.split(',\\s*', db_names):
        engines[name] = rec = {
            
        }
        rec['url'] = context.config.get_section_option(name, 'sqlalchemy.url')
    for (name, rec) in engines.items():
        logger.info(('Migrating database %s' % name))
        file_ = ('%s.sql' % name)
        logger.info(('Writing output to %s' % name))
        with open(file_, 'w') as buffer:
            context.configure(url=rec['url'], output_buffer=buffer, target_metadata=target_metadata.get(name), literal_binds=True)
            with context.begin_transaction():
                context.run_migrations(engine_name=name)

dataset/ETHPy150Open quantmind/lux/lux/extensions/odm/commands/template/lux/env.py run_migrations_offline/VarMisuse@102/279 `file_`->`name`