Repository URL to install this package:
Version:
4.0.108 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
sqlalchemy
/
dialects
/
postgresql
/
constraints.pyc
|
---|
ó EYc @ sJ d d l m Z d d l m Z d d l m Z d e f d YZ d S( i ( t ColumnCollectionConstraint( t expression( t utilt ExcludeConstraintc B s, e Z d Z d Z d Z d Z d Z RS( sÜ A table-level EXCLUDE constraint. Defines an EXCLUDE constraint as described in the `postgres documentation`__. __ http://www.postgresql.org/docs/9.0/static/sql-createtable.html#SQL-CREATETABLE-EXCLUDE t exclude_constraintc O sc g } g } i | _ t | \ } } xª t | j | | D] \ \ } } } } } | d k rt | j | n | d k r | j n | } | d k r« | | j | <n t j | } | j | | | f q@ W| | _ t j | d | j d d | j d d | j d | | j d d | _ | j d } | d k r_t j | | _ n d S( su :param \*elements: A sequence of two tuples of the form ``(column, operator)`` where column must be a column name or Column object and operator must be a string containing the operator to use. :param name: Optional, the in-database name of this constraint. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY <value> when issuing DDL for this constraint. :param using: Optional string. If set, emit USING <index_method> when issuing DDL for this constraint. Defaults to 'gist'. :param where: Optional string. If set, emit WHERE <predicate> when issuing DDL for this constraint. t namet deferrablet initiallyt usingt gistt whereN( t operatorst zipt" _extract_col_expression_collectiont Nonet appendR R t _literal_as_textt _render_exprsR t __init__t getR R ( t selft elementst kwt columnst render_exprst expressionsR t exprt columnt strnamet add_elementt operatorR R ( ( s_ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/constraints.pyR s2 c K sp g | j j D] } | | j | f ^ q } | j d | j d | j d | j | } | j j | j | S( NR R R ( R t keysR t __class__R R R t dispatcht _update( R R t colR t c( ( s_ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/constraints.pyt copyZ s , N( t __name__t __module__t __doc__t __visit_name__R R R R% ( ( ( s_ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/constraints.pyR s AN( t sql.schemaR t sqlR t R R ( ( ( s_ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/constraints.pyt <module> s