%PDF- %PDF-
Mini Shell

Mini Shell

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

�
�M!Vc@s	ddlZddlmZddlmZddlmZmZmZmZddl	m
Z
ddlmZm
Z
dd	lmZmZmZejr�dd
lmZnddlmZddlZeje�Zde
fd
��YZeed�d��ZdS(i����Ni(tcompat(tutili(tcompilestalter_tabletformat_table_nametRenameTable(tDefaultImpl(tINTEGERtBIGINT(ttexttNumerictColumn(tUnaryExpression(t_UnaryExpressiontPostgresqlImplcBs8eZdZeZd�Zd�Zd�Zd�ZRS(t
postgresqlcCs7x0|jD]%}|jdk	r
|j|�q
q
WdS(N(tconstraintstnametNonetdrop_constraint(tselfttablet
constraint((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pytprep_table_for_batchscCs�|jr||jjkrtS|}d||fkrA||kS|jdk	r�t|jjtj	�r�t
jd|�r�t|jt
�r�t
jdd|�}n|jjd||f�S(Ns^'.+'$s	^u?'?|'?$t'sSELECT %s = %s(tprimary_keyRt_autoincrement_columntFalseRtserver_defaultt
isinstancetargRtstring_typestretmatchttypeR
tsubt
connectiontscalar(Rtinspector_columntmetadata_columntrendered_metadata_defaulttrendered_inspector_defaulttconn_col_default((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pytcompare_server_defaults"	
	cCs�|jd�r�t|dttf�r�tjd|d�}|r�|jjtd�d|j	d��j
�}|r�|\}}||dkr�tjd||j
|f�|d=q�q�q�ndS(	NtdefaultR"snextval\('(.+?)'::regclass\)s+select c.relname, a.attname from pg_class as c join pg_depend d on d.objid=c.oid and d.classid='pg_class'::regclass and d.refclassid='pg_class'::regclass join pg_class t on t.oid=d.refobjid join pg_attribute a on a.attrelid=t.oid and a.attnum=d.refobjsubid where c.relkind='S' and c.relname=:seqnametseqnameiRs^Detected sequence named '%s' as owned by integer column '%s(%s)', assuming SERIAL and omitting(tgetRRRR R!tbindtexecuteR	tgrouptfirsttlogtinfoR(Rt	inspectorRtcolumn_infot	seq_matchR4R-tcolname((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pytautogen_column_reflect<s 
	cs"td�|D���td�|D���t��fd�t��j��D��}x-|j�D]\}\}}|j|�qgWx�t|�D]�}	|	j�kr�q�ntjr�|	j	}
n	|	j
}
xG|
D]?}t|tt
f�s�tjd|	j�|j|	�q�q�Wq�WdS(Ncss|]}|j|fVqdS(N(R(t.0tc((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pys	<genexpr>_scss|]}|j|fVqdS(N(R(R:R;((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pys	<genexpr>asc3s)|]}|�|�|ffVqdS(N((R:R(tconn_indexes_by_nametconn_uniques_by_name(sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pys	<genexpr>fssQautogenerate skipping functional index %s; not supported by SQLAlchemy reflection(tdicttsettintersectiontitemstremovetlistRRtsqla_08texpressionstcolumnsRRRRtwarntdiscard(Rtconn_unique_constraintstconn_indexestmetadata_unique_constraintstmetadata_indexestdoubled_constraintsRtuqtixtidxtexprstexpr((R<R=sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pytcorrect_for_autogen_constraintsZs,		
(	t__name__t
__module__t__dialect__tTruettransactional_ddlRR+R9RS(((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pyRs			RcKs/dt||j|j�t||jd�fS(Ns%s RENAME TO %s(Rt
table_nametschemaRtnew_table_nameR(telementtcompilertkw((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pytvisit_rename_table}s(R RRttbaseRRRRtimplRtsqlalchemy.dialects.postgresqlRRt
sqlalchemyR	R
RRDtsqlalchemy.sql.expressionRR
tloggingt	getLoggerRTR3RR_(((sG/opt/alt/python27/lib/python2.7/site-packages/alembic/ddl/postgresql.pyt<module>s"	i

Zerion Mini Shell 1.0