%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pyo

�
�M!Vc@�s�ddlmZddlmZddlmZmZddlmZddl	Z	ddl
Z
eZej
Z
ee
j�e	jd�Ze
jd�ZiZd�Zd	�Zej�r�e�ne�dS(
i����(twith_statement(tcontext(tengine_from_configtpool(t
fileConfigNsalembic.envt	databasescC�si}xAtjdt�D]-}i||<}tjj|d�|d<qWx�|j�D]�\}}tjd|�d|}tjd|�t	|d��Y}tj
d|dd|d	tj|�d
t
�tj��tjd|�WdQXWdQXqWWdS(
sFRun 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*ssqlalchemy.urlturlsMigrating database %ss%s.sqlsWriting output to %stwt
output_bufferttarget_metadatat
literal_bindstengine_nameN(tretsplittdb_namesRtconfigtget_section_optiontitemstloggertinfotopent	configureR	tgettTruetbegin_transactiontrun_migrations(tenginestnametrectfile_tbuffer((sN/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pytrun_migrations_offline+s

cC�s�i}xStjdt�D]?}i||<}ttjj|�dddtj�|d<qWxa|j	�D]S\}}|d}|j
�|d<}tr�|j�|d<qi|j
�|d<qiWzy�xr|j	�D]d\}}tjd|�tjd|dd	d
|dd|d
tj|��tjd|�q�Wtrix%|j�D]}|dj�qNWnx"|j�D]}|dj�qvWWn/x"|j�D]}|dj�q�W�nXWdx"|j�D]}|dj�q�WXdS(s�Run migrations in 'online' mode.

    In this scenario we need to create an Engine
    and associate a connection with the context.

    s,\s*tprefixssqlalchemy.t	poolclasstenginet
connectionttransactionsMigrating database %st
upgrade_tokens%s_upgradestdowngrade_tokens
%s_downgradesR	RN(RR
RRRRtget_sectionRtNullPoolRtconnecttUSE_TWOPHASEtbegin_twophasetbeginRRRR	RRtvaluestpreparetcommittrollbacktclose(RRRR"tconn((sN/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pytrun_migrations_onlineLsD
	


(t
__future__RtalembicRt
sqlalchemyRRtlogging.configRtloggingRtFalseR*Rtconfig_file_namet	getLoggerRtget_main_optionRR	RR3tis_offline_mode(((sN/opt/alt/python27/lib/python2.7/site-packages/alembic/templates/multidb/env.pyt<module>s 	

	!	6


Zerion Mini Shell 1.0