File: //opt/alt/python27/lib/python2.7/site-packages/alembic/templates/generic/env.pyc
�
�M!Vc @� s� d d l m Z d d l m Z d d l m Z m Z d d l m Z e j Z e e j
� d Z d � Z
d � Z e j � r� e
� n e � d S( i����( t with_statement( t context( t engine_from_configt pool( t
fileConfigc C� sL t j d � } t j d | d t d t � t j � � t j � Wd QXd S( sF 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.
s sqlalchemy.urlt urlt target_metadatat
literal_bindsN( t configt get_main_optionR t configureR t Truet begin_transactiont run_migrations( R ( ( sN /opt/alt/python27/lib/python2.7/site-packages/alembic/templates/generic/env.pyt run_migrations_offline s
c C� ss t t j t j � d d d t j �} | j � �: } t j d | d t � t j
� � t j � Wd QXWd QXd S( s� Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
t prefixs sqlalchemy.t poolclasst
connectionR N( R R t get_sectiont config_ini_sectionR t NullPoolt connectR R
R R R
( t connectableR ( ( sN /opt/alt/python27/lib/python2.7/site-packages/alembic/templates/generic/env.pyt run_migrations_online. s
N( t
__future__R t alembicR t
sqlalchemyR R t logging.configR R t config_file_namet NoneR R R t is_offline_mode( ( ( sN /opt/alt/python27/lib/python2.7/site-packages/alembic/templates/generic/env.pyt <module> s