%PDF- %PDF-
Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/ |
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pyo |
� �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 d d l Z d d l Z e Z e j Z e e j � e j d � Z e j d � Z i 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 fileConfigNs alembic.envt databasesc C� s i } xA t j d t � D]- } i | | <} t j j | d � | d <q Wx� | j � D]� \ } } t j d | � d | } t j d | � t | d � �Y } t j d | d d | d t j | � d t � t j � � t j d | � Wd QXWd QXqW Wd 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 ,\s*s sqlalchemy.urlt urls Migrating database %ss %s.sqls Writing output to %st wt output_buffert target_metadatat literal_bindst engine_nameN( t ret splitt db_namesR t configt get_section_optiont itemst loggert infot opent configureR t gett Truet begin_transactiont run_migrations( t enginest namet rect file_t buffer( ( sN /opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pyt run_migrations_offline+ s c C� s� i } xS t j d t � D]? } i | | <} t t j j | � d d d t j �| d <q Wxa | j � D]S \ } } | d } | j � | d <} t r� | j � | d <qi | j � | d <qi Wzy� xr | j � D]d \ } } t j d | � t j d | d d d | d d | d t j | � � t j d | � q� Wt rix% | j � D] } | d j � qNWn x"