/opt/alt/python27/lib/python2.7/site-packages/alembic/testing
Edit: /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyc (8122B)
Ñò
ŒM!Vc @ s± d Z d d k l Z d d k l Z d d k l Z d d k l Z l
Z
d d k l Z d Z
d e f d
„ ƒ YZ d „ Z d „ Z d
„ Z d „ Z d „ Z e i d „ ƒ Z e i d „ ƒ Z e i d „ ƒ Z e i d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z e i d ƒ d „ ƒ Z! e i d ƒ d „ ƒ Z" d S( sŒ NOTE: copied/adapted from SQLAlchemy master for backwards compatibility;
this should be removable when Alembic targets SQLAlchemy 1.0.0
iÿÿÿÿ( t url( t texti ( t compati ( t configt engines( t get_url_backend_namet registerc B s2 e Z d „ Z e d „ ƒ Z d „ Z d „ Z RS( c C s
h | _ d S( N( t fns( t self( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt __init__ s c C s t ƒ i d ƒ | ƒ S( Nt *( R t for_db( t clst fn( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt init s c s ‡ ‡ f d † } | S( Nc s | ˆ i ˆ <ˆ S( N( R ( R
( R t dbname( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt decorate s
( ( R R R ( ( R R sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR s c G s˜ t | t i ƒ o t i | ƒ } n* t | t i ƒ o
| } n
| i i } t | ƒ } | | i j o | i | | | Œ S| i d | | Œ Sd S( NR
(
t
isinstanceR t string_typest sa_urlt make_urlt URLt dbR R R ( R t cfgt argR t backend( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt __call__ s
( t __name__t
__module__R t classmethodR R R ( ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR
s c C s+ x$ t ƒ D] } t | | i | ƒ q
Wd S( N( t _configs_for_db_operationt
_create_dbR ( t follower_identR ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt create_follower_db) s
c C s+ x$ t i i ƒ D] } t | | ƒ q Wd S( N( R t Configt all_configst _configure_follower( R R ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt configure_follower/ s c C ss | o t | | ƒ } n t i | | ƒ } | i ƒ i ƒ t i i | | | | ƒ } | o t | | ƒ n | S( N( t _follower_url_from_mainR t testing_enginet connectt closeR R" R R$ ( t db_urlt db_optst optionst file_configR t engR ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt setup_config4 s c C s+ x$ t ƒ D] } t | | i | ƒ q
Wd S( N( R t _drop_dbR ( R R ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyt drop_follower_db? s
c c sË t ƒ } x$ t i i ƒ D] } | i i ƒ q Wxm t i i ƒ D]\ } | i i } t | ƒ } | | i | i | i
f } | | j o | V| i | ƒ q@ q@ Wx$ t i i ƒ D] } | i i ƒ q° Wd S( N( t setR R" R# R t disposeR R t usernamet hostt databaset add( t hostsR R R t host_conf( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR D s
c C s t d | i ƒ ‚ d S( Ns" no DB creation routine for cfg: %s( t NotImplementedErrorR ( R R. t ident( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR Y s c C s t d | i ƒ ‚ d S( Ns no DB drop routine for cfg: %s( R: R ( R R. R; ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR0 ^ s c C s d S( N( ( R R; ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR$ c s c C s t i | ƒ } | | _ | S( N( R R R6 ( R R; ( ( sJ /opt/alt/python27/lib/python2.7/site-packages/alembic/testing/provision.pyR&