Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
‹EYc@sdZddlmZddlmZmZmZddlmZddlmZddl	m
Z
mZmZdd	l
mZdd
lZddlmZmZmZmZddlmZdd
lZdd
lZdd
lZd
„Zd„Zed„Zed„Zd„Zed„Z d„Z!ej"de
fd„ƒYƒZ#dej$e#fd„ƒYZ%de%fd„ƒYZ&de#fd„ƒYZ'dee#fd„ƒYZ(de%fd„ƒYZ)d e%fd!„ƒYZ*d"e%fd#„ƒYZ+d$e#fd%„ƒYZ,d&e,e%fd'„ƒYZ-e-j.Z.e-j/Z/d(e,e%fd)„ƒYZ0d*e%fd+„ƒYZ1ed,„Z2d-e%fd.„ƒYZ3d/e%fd0„ƒYZ4d1e%fd2„ƒYZ5d3e%fd4„ƒYZ6d5e%fd6„ƒYZ7d7e7fd8„ƒYZ8d9e%fd:„ƒYZ9d;e%fd<„ƒYZ:d=e%fd>„ƒYZ;d?e%fd@„ƒYZ<dAe%fdB„ƒYZ=dCee%fdD„ƒYZ>dEee#fdF„ƒYZ?dGe?fdH„ƒYZ@dIe?fdJ„ƒYZAdKe?fdL„ƒYZBdMejCejDfdN„ƒYZEdOeEfdP„ƒYZFdQeFfdR„ƒYZGdSeFfdT„ƒYZHdUeHfdV„ƒYZIeIdWƒZJeFZKdXeFfdY„ƒYZLdZ„ZMd[„ZNd\„ZOd]„ZPd^„ZQd_„ZRejSd`ƒda„ƒZTdb„ZUdc„ZVdd„ZWde„ZXdf„ZYdg„ZZdh„Z[edi„Z\dj„Z]dk„Z^dl„Z_dm„Z`eedn„ZaejbdoejcƒZddp„Zedq„Zfdr„Zgeds„Zhdtefdu„ƒYZid
S(vupCore SQL expression elements, including :class:`.ClauseElement`,
:class:`.ColumnElement`, and derived classes.

iÿÿÿÿ(tunicode_literalsi(tutiltexct
inspectioni(ttype_api(t	operators(t	Visitabletcloned_traversettraverse(t	AnnotatedN(t
ExecutabletPARSE_AUTOCOMMITt	ImmutabletNO_ARG(t_generativecKs
|jƒS(N(t_clone(telementtkw((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRscCs.t|ƒ}t|t|ƒtjd|jƒS(uŸReturn the clause ``expression COLLATE collation``.

    e.g.::

        collate(mycolumn, 'utf8_bin')

    produces::

        mycolumn COLLATE utf8_bin

    ttype_(t_literal_as_bindstBinaryExpressiont_literal_as_textRtcollatettype(t
expressiont	collationtexpr((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR!s

	cCs"t|ƒ}|j||d|ƒS(uEProduce a ``BETWEEN`` predicate clause.

    E.g.::

        from sqlalchemy import between
        stmt = select([users_table]).where(between(users_table.c.id, 5, 7))

    Would produce SQL resembling::

        SELECT id, name FROM user WHERE id BETWEEN :id_1 AND :id_2

    The :func:`.between` function is a standalone version of the
    :meth:`.ColumnElement.between` method available on all
    SQL expressions, as in::

        stmt = select([users_table]).where(users_table.c.id.between(5, 7))

    All arguments passed to :func:`.between`, including the left side
    column expression, are coerced from Python scalar values if a
    the value is not a :class:`.ColumnElement` subclass.   For example,
    three fixed values can be compared as in::

        print(between(5, 3, 7))

    Which would produce::

        :param_1 BETWEEN :param_2 AND :param_3

    :param expr: a column expression, typically a :class:`.ColumnElement`
     instance or alternatively a Python scalar expression to be coerced
     into a column expression, serving as the left side of the ``BETWEEN``
     expression.

    :param lower_bound: a column or Python scalar expression serving as the
     lower bound of the right side of the ``BETWEEN`` expression.

    :param upper_bound: a column or Python scalar expression serving as the
     upper bound of the right side of the ``BETWEEN`` expression.

    :param symmetric: if True, will render " BETWEEN SYMMETRIC ". Note
     that not all databases support this syntax.

     .. versionadded:: 0.9.5

    .. seealso::

        :meth:`.ColumnElement.between`

    t	symmetric(Rtbetween(Rtlower_boundtupper_boundR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR5s2cCstd|d|dtƒS(uÿReturn a literal clause, bound to a bind parameter.

    Literal clauses are created automatically when non-
    :class:`.ClauseElement` objects (such as strings, ints, dates, etc.) are
    used in a comparison operation with a :class:`.ColumnElement` subclass,
    such as a :class:`~sqlalchemy.schema.Column` object.  Use this function
    to force the generation of a literal clause, which will be created as a
    :class:`BindParameter` with a bound value.

    :param value: the value to be bound. Can be any Python object supported by
        the underlying DB-API, or is translatable via the given type argument.

    :param type\_: an optional :class:`~sqlalchemy.types.TypeEngine` which
        will provide bind-parameter translation for this literal.

    RtuniqueN(t
BindParametertNonetTrue(tvalueR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytliteralkscCs¥tj|ƒ}t|dƒr1t|jƒ|ƒSt|tƒrY|jƒ}||_|St|t	ƒsŽ|dkr{tƒSt|d|ƒSnt
d|d|ƒSdS(uvAssociate a SQL expression with a particular type, without rendering
    ``CAST``.

    E.g.::

        from sqlalchemy import type_coerce

        stmt = select([type_coerce(log_table.date_string, StringDateTime())])

    The above construct will produce SQL that is usually otherwise unaffected
    by the :func:`.type_coerce` call::

        SELECT date_string FROM log

    However, when result rows are fetched, the ``StringDateTime`` type
    will be applied to result rows on behalf of the ``date_string`` column.

    A type that features bound-value handling will also have that behavior
    take effect when literal values or :func:`.bindparam` constructs are
    passed to :func:`.type_coerce` as targets.
    For example, if a type implements the :meth:`.TypeEngine.bind_expression`
    method or :meth:`.TypeEngine.bind_processor` method or equivalent,
    these functions will take effect at statement compilation/execution time
    when a literal value is passed, as in::

        # bound-value handling of MyStringType will be applied to the
        # literal value "some string"
        stmt = select([type_coerce("some string", MyStringType)])

    :func:`.type_coerce` is similar to the :func:`.cast` function,
    except that it does not render the ``CAST`` expression in the resulting
    statement.

    :param expression: A SQL expression, such as a :class:`.ColumnElement`
     expression or a Python string which will be coerced into a bound literal
     value.

    :param type_: A :class:`.TypeEngine` class or instance indicating
     the type to which the expression is coerced.

    .. seealso::

        :func:`.cast`

    u__clause_element__RN(Rtto_instancethasattrttype_coercet__clause_element__t
isinstanceR RRRR!tNullR$tLabel(RRtbp((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR's.	c	Cst|dd|dtdtƒS(uwCreate an 'OUT' parameter for usage in functions (stored procedures),
    for databases which support them.

    The ``outparam`` can be used like a regular function parameter.
    The "output" value will be available from the
    :class:`~sqlalchemy.engine.ResultProxy` object via its ``out_parameters``
    attribute, which returns a dictionary containing the values.

    RRt
isoutparamN(R R!tFalseR"(tkeyR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytoutparam¾s
cCstjt|ƒƒS(u»Return a negation of the given clause, i.e. ``NOT(clause)``.

    The ``~`` operator is also overloaded on all
    :class:`.ColumnElement` subclasses to produce the
    same result.

    (RtinvR(tclause((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytnot_Ìst
ClauseElementcBs^eZdZdZiZeZgZdZ	dZ
eZeZ
dZdZeZd„Zed„ƒZejd„ƒZd„Zd„Zd„Zded„Zd	„Zd
„Zd„Zd„Zd
„Zed„Z d„Z!dd„Z"ej#dƒddd„ƒZ$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+e+Z,d„Z-RS(uSBase class for elements of a programmatically constructed SQL
    expression.

    uclausecCsT|jj|jƒ}|jjƒ|_tjj|ƒtjj|ƒ||_	|S(uêCreate a shallow copy of this ClauseElement.

        This method may be used by a generative API.  Its also used as
        part of the "deep" copy afforded by a traversal that combines
        the _copy_internals() method.

        (
t	__class__t__new__t__dict__tcopyR4t_cloned_sett_resett
ColumnElementt
comparatort_is_clone_of(tselftc((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRës	cCs|jS(u.return the 'constructor' for this ClauseElement.

        This is for the purposes for creating a new object of
        this type.   Usually, its just the element's __class__.
        However, the "Annotated" version of the object overrides
        to return the class of its proxied element.

        (R5(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_constructors
cCs?tjƒ}|}x&|dk	r:|j|ƒ|j}qW|S(uReturn the set consisting all cloned ancestors of this
        ClauseElement.

        Includes this ClauseElement.  This accessor tends to be used for
        FromClause objects to identify 'equivalent' FROM clauses, regardless
        of transformative operations.

        N(Rt
column_setR!taddR=(R>tstf((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR9
s


cCs#|jjƒ}|jddƒ|S(Nu_is_clone_of(R7R8tpopR!(R>td((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__getstate__scCs
t||ƒS(ugreturn a copy of this ClauseElement with annotations
        updated by the given dictionary.

        (R	(R>tvalues((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt	_annotate#scCs
t||ƒS(uhreturn a copy of this ClauseElement with annotations
        replaced by the given dictionary.

        (R	(R>RH((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_with_annotations*scCs|r|jƒS|SdS(u©return a copy of this :class:`.ClauseElement` with annotations
        removed.

        :param values: optional tuple of individual values
         to remove.

        N(R(R>RHtclone((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_deannotate1s
cCs|j|||ƒS(N(t_execute_clauseelement(R>t
connectiontmultiparamstparams((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_execute_on_connectionBscOs|jt||ƒS(ußReturn a copy with :func:`bindparam()` elements replaced.

        Same functionality as ``params()``, except adds `unique=True`
        to affected bind parameters so that multiple statements can be
        used.

        (t_paramsR"(R>toptionaldicttkwargs((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
unique_paramsEscOs|jt||ƒS(užReturn a copy with :func:`bindparam()` elements replaced.

        Returns a copy of this ClauseElement with :func:`bindparam()`
        elements replaced with values taken from the given dictionary::

          >>> clause = column('x') + bindparam('foo')
          >>> print clause.compile().params
          {'foo':None}
          >>> print clause.params({'foo':7}).compile().params
          {'foo':7}

        (RRR.(R>RSRT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRPOs
csst|ƒdkr&ˆj|dƒn$t|ƒdkrJtjdƒ‚n‡‡fd†}t|ii|d6ƒS(Niiu9params() takes zero or one positional dictionary argumentcsB|jˆkr+ˆ|j|_t|_nˆr>|jƒndS(N(R/R#R.trequiredt_convert_to_unique(tbind(RTR(sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytvisit_bindparames
u	bindparam(tlentupdateRt
ArgumentErrorR(R>RRSRTRY((RTRsL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRR^scKs
||kS(uTCompare this ClauseElement to the given ClauseElement.

        Subclasses should override the default behavior, which is a
        straight identity comparison.

        \**kw are arguments consumed by subclass compare() methods and
        may be used to modify the criteria for comparison.
        (see :class:`.ColumnElement`)

        ((R>totherR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytcomparemscKsdS(utReassign internal elements to be clones of themselves.

        Called during a copy-and-traverse operation on newly
        shallow-copied elements to create a deep copy.

        The given clone function should be used, which may be applying
        additional transformations to the element (i.e. replacement
        traversal, cloned traversal, annotations).

        N((R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_copy_internalszscKsgS(u¨Return immediate child elements of this :class:`.ClauseElement`.

        This is used for visit traversal.

        \**kwargs may contain flags that change the collection that is
        returned, for example to return a subset of items in order to
        cut down on larger traversals, or to return child items from a
        different context (such as schema-level collections instead of
        clause-level).

        ((R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytget_children‡scCs|S(uaApply a 'grouping' to this :class:`.ClauseElement`.

        This method is overridden by subclasses to return a
        "grouping" construct, i.e. parenthesis.   In particular
        it's used by "binary" expressions to provide a grouping
        around themselves when placed into a larger expression,
        as well as by :func:`.select` constructs when placed into
        the FROM clause of another :func:`.select`.  (Note that
        subqueries should be normally created using the
        :meth:`.Select.alias` method, as many platforms require
        nested SELECT statements to be named).

        As expressions are composed together, the application of
        :meth:`self_group` is automatic - end-user code should never
        need to use this method directly.  Note that SQLAlchemy's
        clause constructs take operator precedence into account -
        so parenthesis might not be needed, for example, in
        an expression like ``x OR (y AND z)`` - AND takes precedence
        over OR.

        The base :meth:`self_group` method of :class:`.ClauseElement`
        just returns self.
        ((R>tagainst((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
self_group•susqlalchemy.engine.defaultcKs^|sH|r|j}qH|jr9|jj}|j}qH|jƒ}n|j|d||S(u	Compile this SQL expression.

        The return value is a :class:`~.Compiled` object.
        Calling ``str()`` or ``unicode()`` on the returned value will yield a
        string representation of the result. The
        :class:`~.Compiled` object also can return a
        dictionary of bind parameter names and values
        using the ``params`` accessor.

        :param bind: An ``Engine`` or ``Connection`` from which a
            ``Compiled`` will be acquired. This argument takes precedence over
            this :class:`.ClauseElement`'s bound engine, if any.

        :param column_keys: Used for INSERT and UPDATE statements, a list of
            column names which should be present in the VALUES clause of the
            compiled statement. If ``None``, all columns from the target table
            object are rendered.

        :param dialect: A ``Dialect`` instance from which a ``Compiled``
            will be acquired. This argument takes precedence over the `bind`
            argument as well as this :class:`.ClauseElement`'s bound engine,
            if any.

        :param inline: Used for INSERT statements, for a dialect which does
            not support inline retrieval of newly generated primary key
            columns, will force the expression used to create the new primary
            key value to be rendered inline within the INSERT statement's
            VALUES clause. This typically refers to Sequence execution but may
            also refer to any server-side default generation function
            associated with a primary key `Column`.

        :param compile_kwargs: optional dictionary of additional parameters
            that will be passed through to the compiler within all "visit"
            methods.  This allows any custom flag to be passed through to
            a custom compilation construct, for example.  It is also used
            for the case of passing the ``literal_binds`` flag through::

                from sqlalchemy.sql import table, column, select

                t = table('t', column('x'))

                s = select([t]).where(t.c.x == 5)

                print s.compile(compile_kwargs={"literal_binds": True})

            .. versionadded:: 0.9.0

        .. seealso::

            :ref:`faq_sql_expression_string`

        RX(tdialectRXtDefaultDialectt	_compiler(R>tdefaultRXRcR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytcompile¯s7	cKs|j|||S(uNReturn a compiler appropriate for this ClauseElement, given a
        Dialect.(tstatement_compiler(R>RcR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyReðscCs9tjrt|jƒƒSt|jƒƒjddƒSdS(Nuasciiubackslashreplace(Rtpy3ktstrRgtunicodetencode(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__str__ös	cCs
t||ƒS(u'and' at the ClauseElement level.

        .. deprecated:: 0.9.5 - conjunctions are intended to be
           at the :class:`.ColumnElement`. level

        (tand_(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__and__üscCs
t||ƒS(uœ'or' at the ClauseElement level.

        .. deprecated:: 0.9.5 - conjunctions are intended to be
           at the :class:`.ColumnElement`. level

        (tor_(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__or__scCs$t|dƒr|jS|jƒSdS(Nunegation_clause(R&tnegation_clauset_negate(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
__invert__scCs(t|jdtjƒdtjddƒS(NRatoperatortnegate(tUnaryExpressionRbRR1R!(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRss	cCstdƒ‚dS(Nu+Boolean value of this clause is not defined(t	TypeError(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__bool__scCsI|j}|dkr"tj|ƒSd|j|jjt|ƒ|fSdS(Nu<%s.%s at 0x%x; %s>(tdescriptionR!tobjectt__repr__t
__module__R5t__name__tid(R>tfriendly((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR|s
	
N(.R~R}t__doc__t__visit_name__t_annotationsR.tsupports_executiont
_from_objectsR!RXR=t
is_selectableR"tis_clause_elementRzt_order_by_label_elementt_is_from_containerRtpropertyR@Rtmemoized_propertyR9RGRIRJRLRQRURPRRR^R_R`RbtdependenciesRgReRmRoRqRtRsRyt__nonzero__R|(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR4×sL						
			

	@									R;cBs=eZdZdZeZgZdZdZ	dZ
eZdZ
eZdZdd„Zd„Zejd„ƒZejd„ƒZd„Zd„Zd„Zd	„Zed
„ƒZed„ƒZejd„ƒZejd
„ƒZd„Zd„Z ded„Z!edd„Z"d„Z#d„Z$ejd„ƒZ%RS(uZRepresent a column-oriented SQL expression suitable for usage in the
    "columns" clause, WHERE clause etc. of a statement.

    While the most familiar kind of :class:`.ColumnElement` is the
    :class:`.Column` object, :class:`.ColumnElement` serves as the basis
    for any unit that may be present in a SQL expression, including
    the expressions themselves, SQL functions, bound parameters,
    literal expressions, keywords such as ``NULL``, etc.
    :class:`.ColumnElement` is the ultimate base class for all such elements.

    A wide variety of SQLAlchemy Core functions work at the SQL expression
    level, and are intended to accept instances of :class:`.ColumnElement` as
    arguments.  These functions will typically document that they accept a
    "SQL expression" as an argument.  What this means in terms of SQLAlchemy
    usually refers to an input which is either already in the form of a
    :class:`.ColumnElement` object, or a value which can be **coerced** into
    one.  The coercion rules followed by most, but not all, SQLAlchemy Core
    functions with regards to SQL expressions are as follows:

        * a literal Python value, such as a string, integer or floating
          point value, boolean, datetime, ``Decimal`` object, or virtually
          any other Python object, will be coerced into a "literal bound
          value".  This generally means that a :func:`.bindparam` will be
          produced featuring the given value embedded into the construct; the
          resulting :class:`.BindParameter` object is an instance of
          :class:`.ColumnElement`.  The Python value will ultimately be sent
          to the DBAPI at execution time as a paramterized argument to the
          ``execute()`` or ``executemany()`` methods, after SQLAlchemy
          type-specific converters (e.g. those provided by any associated
          :class:`.TypeEngine` objects) are applied to the value.

        * any special object value, typically ORM-level constructs, which
          feature a method called ``__clause_element__()``.  The Core
          expression system looks for this method when an object of otherwise
          unknown type is passed to a function that is looking to coerce the
          argument into a :class:`.ColumnElement` expression.  The
          ``__clause_element__()`` method, if present, should return a
          :class:`.ColumnElement` instance.  The primary use of
          ``__clause_element__()`` within SQLAlchemy is that of class-bound
          attributes on ORM-mapped classes; a ``User`` class which contains a
          mapped attribute named ``.name`` will have a method
          ``User.name.__clause_element__()`` which when invoked returns the
          :class:`.Column` called ``name`` associated with the mapped table.

        * The Python ``None`` value is typically interpreted as ``NULL``,
          which in SQLAlchemy Core produces an instance of :func:`.null`.

    A :class:`.ColumnElement` provides the ability to generate new
    :class:`.ColumnElement`
    objects using Python expressions.  This means that Python operators
    such as ``==``, ``!=`` and ``<`` are overloaded to mimic SQL operations,
    and allow the instantiation of further :class:`.ColumnElement` instances
    which are composed from other, more fundamental :class:`.ColumnElement`
    objects.  For example, two :class:`.ColumnClause` objects can be added
    together with the addition operator ``+`` to produce
    a :class:`.BinaryExpression`.
    Both :class:`.ColumnClause` and :class:`.BinaryExpression` are subclasses
    of :class:`.ColumnElement`::

        >>> from sqlalchemy.sql import column
        >>> column('a') + column('b')
        <sqlalchemy.sql.expression.BinaryExpression object at 0x101029dd0>
        >>> print column('a') + column('b')
        a + b

    .. seealso::

        :class:`.Column`

        :func:`.expression.column`

    ucolumncCsT|tjtjtjfkrL|jjtjjkrLt|tj	tj
ƒS|SdS(N(RRnRpt_asboolRt_type_affinityRtBOOLEANTYPEt	AsBooleantistruetisfalse(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRbºs
	cCsE|jjtjjkr.t|tjtjƒStt	|ƒj
ƒSdS(N(RRRRR‘RR“R’tsuperR;Rs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRsÂscCstjS(N(RtNULLTYPE(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRËscCsEy|jj}Wn$tk
r6td|jƒ‚nX||ƒSdS(NuOObject %r associated with '.type' attribute is not a TypeEngine class or object(Rtcomparator_factorytAttributeErrorRx(R>R–((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR<Ïs
cCsZyt|j|ƒSWn?tk
rUtdt|ƒjt|jƒj|fƒ‚nXdS(Nu3Neither %r object nor %r object has an attribute %r(tgetattrR<R—RR~(R>R/((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__getattr__Ús
cOs||j||ŽS(N(R<(R>topR]RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytoperateåscKs|||j|S(N(R<(R>RšR]RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytreverse_operateèsc	Cs"td|d|d|jdtƒS(Nt_compared_to_operatort_compared_to_typeR(R R!RR"(R>Rutobj((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_bind_paramëscCs|S(u^Return a column expression.

        Part of the inspection interface; returns self.

        ((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRðscCs|fS(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_select_iterableùscCstjd„|jDƒƒS(Ncss$|]}t|dƒs|VqdS(u_proxiesN(R&(t.0R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pys	<genexpr>ÿs(RRAt	proxy_set(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytbase_columnsýscCsLtj|gƒ}t|dƒrHx$|jD]}|j|jƒq+Wn|S(Nu_proxies(RRAR&t_proxiesR[R£(R>RCR?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR£s
cCst|jj|jƒƒS(uoReturn True if the given :class:`.ColumnElement`
        has a common ancestor to this :class:`.ColumnElement`.(tboolR£tintersection(R>tothercolumn((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytshares_lineage
scCs.t|dƒo-t|dƒo-|j|jkS(uhReturn True if the given column element compares to this one
        when targeting within a result row.uname(R&tname(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_compare_name_for_resultscKsà|dkr]|j}|jr*|j}qcyt|ƒ}Wqctjk
rY|j}qcXn|}t|rxt|ƒn|dt|ddƒd|ƒ}|g|_	|j
dk	rÏ|j
jj|ƒ|_
n||j
|<|S(u¥Create a new :class:`.ColumnElement` representing this
        :class:`.ColumnElement` as it appears in the select list of a
        descending selectable.

        Rutypet_selectableN(R!t
anon_labelR/RjRtUnsupportedCompilationErrortColumnClauset
_as_truncatedR˜R¥R=tcolumnstgett_columns(R>t
selectableRªtname_is_truncatableRR/tco((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_make_proxys$			
cKs|f}|r1||kr1||j|ƒ}nxG|D];}|rW|j|ƒrWtSt|ƒt|ƒkr8tSq8WtSdS(u’Compare this ColumnElement to another.

        Special arguments understood:

        :param use_proxies: when True, consider two columns that
          share a common base column as equivalent (i.e. shares_lineage())

        :param equivalents: a dictionary of columns as keys mapped to sets
          of columns. If the given "other" column is present in this
          dictionary, if any of the columns in the corresponding set() pass
          the comparison test, the result is True. This is used to expand the
          comparison to other columns that may be known to be equivalent to
          this one via foreign key or other criterion.

        N(tunionR©R"thashR.(R>R]tuse_proxiestequivalentsRt
to_comparetoth((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^6s	
cCs
t||ƒS(u­Produce a type cast, i.e. ``CAST(<expression> AS <type>)``.

        This is a shortcut to the :func:`~.expression.cast` function.

        .. versionadded:: 1.0.7

        (tCast(R>R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytcastRscCst|||jƒS(uÑProduce a column label, i.e. ``<columnname> AS <name>``.

        This is a shortcut to the :func:`~.expression.label` function.

        if 'name' is None, an anonymous label name will be generated.

        (R+R(R>Rª((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytlabel\scCsEx|jdk	r|j}qWtdt|ƒt|ddƒfƒS(uprovides a constant 'anonymous label' for this ColumnElement.

        This is a label() expression which will be named at compile time.
        The same label() is returned each time anon_label is called so
        that expressions can reference anon_label multiple times, producing
        the same label name at compile time.

        the compiler uses this function automatically at compile time
        for expressions that are known to be 'unnamed' like binary
        expressions and function calls.

        u
%%(%d %s)sunameuanonN(R=R!t_anonymous_labelRR˜(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR­fs
N((&R~R}RR‚R.tprimary_keytforeign_keysR!t_labelR/t
_key_labelR"t_render_label_in_columns_clauset_resolve_labelt_allow_label_resolvet
_alt_namesRbRsRR‹RR<R™R›RœR RŠRR¡R¤R£R©R«R·R^R¿RÀR­(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR;(s<H


										
	
R c
BsƒeZdZdZeZed
eed
d
ed
d
d„	Zd„Z	e
d„ƒZd„Zd„Z
d„Zd„Zd	„ZRS(u°Represent a "bound expression".

    :class:`.BindParameter` is invoked explicitly using the
    :func:`.bindparam` function, as in::

        from sqlalchemy import bindparam

        stmt = select([users_table]).\
                    where(users_table.c.name == bindparam('username'))

    Detailed discussion of how :class:`.BindParameter` is used is
    at :func:`.bindparam`.

    .. seealso::

        :func:`.bindparam`

    u	bindparamcCs’t|tƒr$|j}|j}n|tkrK|tkoE|dk}n|tkr`d}n|dk	r~t||ƒ}n|r¬tdt|ƒ|pœdfƒ|_n|pÅtdt|ƒƒ|_|j|_	|pàd|_
||_||_||_
||_||_|dkrg|
dk	rC|
j|	|ƒ|_qŽtjjt|ƒtjƒ|_n't|tƒr…|ƒ|_n	||_dS(uÉ!Produce a "bound expression".

        The return value is an instance of :class:`.BindParameter`; this
        is a :class:`.ColumnElement` subclass which represents a so-called
        "placeholder" value in a SQL expression, the value of which is
        supplied at the point at which the statement in executed against a
        database connection.

        In SQLAlchemy, the :func:`.bindparam` construct has
        the ability to carry along the actual value that will be ultimately
        used at expression time.  In this way, it serves not just as
        a "placeholder" for eventual population, but also as a means of
        representing so-called "unsafe" values which should not be rendered
        directly in a SQL statement, but rather should be passed along
        to the :term:`DBAPI` as values which need to be correctly escaped
        and potentially handled for type-safety.

        When using :func:`.bindparam` explicitly, the use case is typically
        one of traditional deferment of parameters; the :func:`.bindparam`
        construct accepts a name which can then be referred to at execution
        time::

            from sqlalchemy import bindparam

            stmt = select([users_table]).\
                        where(users_table.c.name == bindparam('username'))

        The above statement, when rendered, will produce SQL similar to::

            SELECT id, name FROM user WHERE name = :username

        In order to populate the value of ``:username`` above, the value
        would typically be applied at execution time to a method
        like :meth:`.Connection.execute`::

            result = connection.execute(stmt, username='wendy')

        Explicit use of :func:`.bindparam` is also common when producing
        UPDATE or DELETE statements that are to be invoked multiple times,
        where the WHERE criterion of the statement is to change on each
        invocation, such as::

            stmt = (users_table.update().
                    where(user_table.c.name == bindparam('username')).
                    values(fullname=bindparam('fullname'))
                    )

            connection.execute(
                stmt, [{"username": "wendy", "fullname": "Wendy Smith"},
                       {"username": "jack", "fullname": "Jack Jones"},
                       ]
            )

        SQLAlchemy's Core expression system makes wide use of
        :func:`.bindparam` in an implicit sense.   It is typical that Python
        literal values passed to virtually all SQL expression functions are
        coerced into fixed :func:`.bindparam` constructs.  For example, given
        a comparison operation such as::

            expr = users_table.c.name == 'Wendy'

        The above expression will produce a :class:`.BinaryExpression`
        construct, where the left side is the :class:`.Column` object
        representing the ``name`` column, and the right side is a
        :class:`.BindParameter` representing the literal value::

            print(repr(expr.right))
            BindParameter('%(4327771088 name)s', 'Wendy', type_=String())

        The expression above will render SQL such as::

            user.name = :name_1

        Where the ``:name_1`` parameter name is an anonymous name.  The
        actual string ``Wendy`` is not in the rendered string, but is carried
        along where it is later used within statement execution.  If we
        invoke a statement like the following::

            stmt = select([users_table]).where(users_table.c.name == 'Wendy')
            result = connection.execute(stmt)

        We would see SQL logging output as::

            SELECT "user".id, "user".name
            FROM "user"
            WHERE "user".name = %(name_1)s
            {'name_1': 'Wendy'}

        Above, we see that ``Wendy`` is passed as a parameter to the database,
        while the placeholder ``:name_1`` is rendered in the appropriate form
        for the target database, in this case the Postgresql database.

        Similarly, :func:`.bindparam` is invoked automatically
        when working with :term:`CRUD` statements as far as the "VALUES"
        portion is concerned.   The :func:`.insert` construct produces an
        ``INSERT`` expression which will, at statement execution time,
        generate bound placeholders based on the arguments passed, as in::

            stmt = users_table.insert()
            result = connection.execute(stmt, name='Wendy')

        The above will produce SQL output as::

            INSERT INTO "user" (name) VALUES (%(name)s)
            {'name': 'Wendy'}

        The :class:`.Insert` construct, at compilation/execution time,
        rendered a single :func:`.bindparam` mirroring the column
        name ``name`` as a result of the single ``name`` parameter
        we passed to the :meth:`.Connection.execute` method.

        :param key:
          the key (e.g. the name) for this bind param.
          Will be used in the generated
          SQL statement for dialects that use named parameters.  This
          value may be modified when part of a compilation operation,
          if other :class:`BindParameter` objects exist with the same
          key, or if its length is too long and truncation is
          required.

        :param value:
          Initial value for this bind param.  Will be used at statement
          execution time as the value for this parameter passed to the
          DBAPI, if no other value is indicated to the statement execution
          method for this particular parameter name.  Defaults to ``None``.

        :param callable\_:
          A callable function that takes the place of "value".  The function
          will be called at statement execution time to determine the
          ultimate value.   Used for scenarios where the actual bind
          value cannot be determined at the point at which the clause
          construct is created, but embedded bind values are still desirable.

        :param type\_:
          A :class:`.TypeEngine` class or instance representing an optional
          datatype for this :func:`.bindparam`.  If not passed, a type
          may be determined automatically for the bind, based on the given
          value; for example, trivial Python types such as ``str``,
          ``int``, ``bool``
          may result in the :class:`.String`, :class:`.Integer` or
          :class:`.Boolean` types being autoamtically selected.

          The type of a :func:`.bindparam` is significant especially in that
          the type will apply pre-processing to the value before it is
          passed to the database.  For example, a :func:`.bindparam` which
          refers to a datetime value, and is specified as holding the
          :class:`.DateTime` type, may apply conversion needed to the
          value (such as stringification on SQLite) before passing the value
          to the database.

        :param unique:
          if True, the key name of this :class:`.BindParameter` will be
          modified if another :class:`.BindParameter` of the same name
          already has been located within the containing
          expression.  This flag is used generally by the internals
          when producing so-called "anonymous" bound expressions, it
          isn't generally applicable to explicitly-named :func:`.bindparam`
          constructs.

        :param required:
          If ``True``, a value is required at execution time.  If not passed,
          it defaults to ``True`` if neither :paramref:`.bindparam.value`
          or :paramref:`.bindparam.callable` were passed.  If either of these
          parameters are present, then :paramref:`.bindparam.required`
          defaults to ``False``.

          .. versionchanged:: 0.8 If the ``required`` flag is not specified,
             it will be set automatically to ``True`` or ``False`` depending
             on whether or not the ``value`` or ``callable`` parameters
             were specified.

        :param quote:
          True if this parameter name requires quoting and is not
          currently known as a SQLAlchemy reserved word; this currently
          only applies to the Oracle backend, where bound names must
          sometimes be quoted.

        :param isoutparam:
          if True, the parameter should be treated like a stored procedure
          "OUT" parameter.  This applies to backends such as Oracle which
          support OUT parameters.

        .. seealso::

            :ref:`coretutorial_bind_param`

            :ref:`coretutorial_insert_expressions`

            :func:`.outparam`

        u
%%(%d %s)suparamu
%%(%d param)sN(R)R¯RR/R
R!tquoted_nameRÁRt_identifying_keyt	_orig_keyRR#tcallableR-RVtcoerce_compared_valueRt	_type_mapR²R•(R>R/R#RRRVtquotet	callable_R-RRž((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__init__”s<Å							cCsa|jƒ}||_d|_t|_|jtjkr]tj	j
t|ƒtjƒ|_n|S(uXReturn a copy of this :class:`.BindParameter` with the given value
        set.
        N(RR#R!RÍR.RVRRR•RÏR²(R>R#tcloned((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_with_value†s			cCs|jr|jƒS|jSdS(uáReturn the value of this bound parameter,
        taking into account if the ``callable`` parameter
        was set.

        The ``callable`` value will be evaluated
        and returned if present, else ``value``.

        N(RÍR#(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyteffective_value“s
	
cCsGtj|ƒ}|jrCtdt|ƒ|jp3dfƒ|_n|S(Nu
%%(%d %s)suparam(R4RRRÁRRÌR/(R>R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¢s
	cCsA|js=t|_tdt|ƒ|jp-dfƒ|_ndS(Nu
%%(%d %s)suparam(RR"RÁRRÌR/(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRW©s		cKs4t|tƒo3|jj|jƒo3|j|jkS(u@Compare this :class:`BindParameter` to the given
        clause.(R)R Rt_compare_type_affinityR#(R>R]R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^¯scCsH|jjƒ}|j}|jr:|jƒ}d|d<n||d<|S(u4execute a deferred value for serialization purposes.ucallableuvalueN(R7R8R#RÍR!(R>RFtv((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRG·s		

cCsd|j|j|jfS(NuBindParameter(%r, %r, type_=%r)(R/R#R(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR|Âs	N(R~R}RR‚R.t_is_crudR
R!RÒRÔRŠRÕRRWR^RGR|(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR |s í	
				t
TypeClausecBseZdZdZd„ZRS(uTHandle a type keyword in a SQL statement.

    Used by the ``Case`` statement.

    u
typeclausecCs
||_dS(N(R(R>R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒÐs(R~R}RR‚RÒ(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÙÇst
TextClausecBseZdZdZejdejƒZej	j
ied6ƒZ	ed„ƒZ
ed„ƒZgZdZZZeZdd„Zeddddd„ƒZed„ƒZejd	ƒd
„ƒZed„ƒZed„ƒZdd
„Z e!d„Z"d„Z#d„Z$RS(uURepresent a literal SQL text fragment.

    E.g.::

        from sqlalchemy import text

        t = text("SELECT * FROM users")
        result = connection.execute(t)


    The :class:`.Text` construct is produced using the :func:`.text`
    function; see that function for full documentation.

    .. seealso::

        :func:`.text`

    u
textclauseu(?<![:\w\x5c]):(\w+)(?!:)u
autocommitcCs|fS(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¡ïscCs|S(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR´óscs=|ˆ_iˆ_‡fd†}ˆjj||ƒˆ_dS(Ncs6t|jdƒƒˆj|jdƒ<d|jdƒS(Niu:%s(R tgroupt_bindparams(tm(R>(sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytrepls%(t_bindRÜt_bind_params_regextsubttext(R>RâRXRÞ((R>sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒs		cCstt|d|ƒ}|r*|j|Œ}n|rB|j|}n|dk	rptjdƒ|jd|ƒ}n|S(uConstruct a new :class:`.TextClause` clause, representing
        a textual SQL string directly.

        E.g.::

            from sqlalchemy import text

            t = text("SELECT * FROM users")
            result = connection.execute(t)

        The advantages :func:`.text` provides over a plain string are
        backend-neutral support for bind parameters, per-statement
        execution options, as well as
        bind parameter and result-column typing behavior, allowing
        SQLAlchemy type constructs to play a role when executing
        a statement that is specified literally.  The construct can also
        be provided with a ``.c`` collection of column elements, allowing
        it to be embedded in other SQL expression constructs as a subquery.

        Bind parameters are specified by name, using the format ``:name``.
        E.g.::

            t = text("SELECT * FROM users WHERE id=:user_id")
            result = connection.execute(t, user_id=12)

        For SQL statements where a colon is required verbatim, as within
        an inline string, use a backslash to escape::

            t = text("SELECT * FROM users WHERE name='\:username'")

        The :class:`.TextClause` construct includes methods which can
        provide information about the bound parameters as well as the column
        values which would be returned from the textual statement, assuming
        it's an executable SELECT type of statement.  The
        :meth:`.TextClause.bindparams` method is used to provide bound
        parameter detail, and :meth:`.TextClause.columns` method allows
        specification of return columns including names and types::

            t = text("SELECT * FROM users WHERE id=:user_id").\
                    bindparams(user_id=7).\
                    columns(id=Integer, name=String)

            for id, name in connection.execute(t):
                print(id, name)

        The :func:`.text` construct is used in cases when
        a literal string SQL fragment is specified as part of a larger query,
        such as for the WHERE clause of a SELECT statement::

            s = select([users.c.id, users.c.name]).where(text("id=:user_id"))
            result = connection.execute(s, user_id=12)

        :func:`.text` is also used for the construction
        of a full, standalone statement using plain text.
        As such, SQLAlchemy refers
        to it as an :class:`.Executable` object, and it supports
        the :meth:`Executable.execution_options` method.  For example,
        a :func:`.text` construct that should be subject to "autocommit"
        can be set explicitly so using the
        :paramref:`.Connection.execution_options.autocommit` option::

            t = text("EXEC my_procedural_thing()").\
                    execution_options(autocommit=True)

        Note that SQLAlchemy's usual "autocommit" behavior applies to
        :func:`.text` constructs implicitly - that is, statements which begin
        with a phrase such as ``INSERT``, ``UPDATE``, ``DELETE``,
        or a variety of other phrases specific to certain backends, will
        be eligible for autocommit if no transaction is in progress.

        :param text:
          the text of the SQL statement to be created.  use ``:<param>``
          to specify bind parameters; they will be compiled to their
          engine-specific format.

        :param autocommit:
          Deprecated.  Use .execution_options(autocommit=<True|False>)
          to set the autocommit option.

        :param bind:
          an optional connection or engine to be used for this text query.

        :param bindparams:
          Deprecated.  A list of :func:`.bindparam` instances used to
          provide information about parameters embedded in the statement.
          This argument now invokes the :meth:`.TextClause.bindparams`
          method on the construct before returning it.  E.g.::

              stmt = text("SELECT * FROM table WHERE id=:id",
                        bindparams=[bindparam('id', value=5, type_=Integer)])

          Is equivalent to::

              stmt = text("SELECT * FROM table WHERE id=:id").\
                        bindparams(bindparam('id', value=5, type_=Integer))

          .. deprecated:: 0.9.0 the :meth:`.TextClause.bindparams` method
             supersedes the ``bindparams`` argument to :func:`.text`.

        :param typemap:
          Deprecated.  A dictionary mapping the names of columns
          represented in the columns clause of a ``SELECT`` statement
          to type objects,
          which will be used to perform post-processing on columns within
          the result set.  This parameter now invokes the
          :meth:`.TextClause.columns` method, which returns a
          :class:`.TextAsFrom` construct that gains a ``.c`` collection and
          can be embedded in other expressions.  E.g.::

              stmt = text("SELECT * FROM table",
                            typemap={'id': Integer, 'name': String},
                        )

          Is equivalent to::

              stmt = text("SELECT * FROM table").columns(id=Integer,
                                                         name=String)

          Or alternatively::

              from sqlalchemy.sql import column
              stmt = text("SELECT * FROM table").columns(
                                    column('id', Integer),
                                    column('name', String)
                                )

          .. deprecated:: 0.9.0 the :meth:`.TextClause.columns` method
             supersedes the ``typemap`` argument to :func:`.text`.

        RXuLautocommit on text() is deprecated.  Use .execution_options(autocommit=True)t
autocommitN(RÚt
bindparamsR±R!Rtwarn_deprecatedtexecution_options(R>RâRXRättypemapRãtstmt((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_texts…
cOsØ|jjƒ|_}xV|D]N}y||j}Wn'tk
r]tjd|jƒ‚qX|||j<qWxb|jƒD]T\}}y||}Wn$tk
r¼tjd|ƒ‚q|X|j|ƒ||<q|WdS(u^Establish the values and/or types of bound parameters within
        this :class:`.TextClause` construct.

        Given a text construct such as::

            from sqlalchemy import text
            stmt = text("SELECT id, name FROM user WHERE name=:name "
                        "AND timestamp=:timestamp")

        the :meth:`.TextClause.bindparams` method can be used to establish
        the initial value of ``:name`` and ``:timestamp``,
        using simple keyword arguments::

            stmt = stmt.bindparams(name='jack',
                        timestamp=datetime.datetime(2012, 10, 8, 15, 12, 5))

        Where above, new :class:`.BindParameter` objects
        will be generated with the names ``name`` and ``timestamp``, and
        values of ``jack`` and ``datetime.datetime(2012, 10, 8, 15, 12, 5)``,
        respectively.  The types will be
        inferred from the values given, in this case :class:`.String` and
        :class:`.DateTime`.

        When specific typing behavior is needed, the positional ``*binds``
        argument can be used in which to specify :func:`.bindparam` constructs
        directly.  These constructs must include at least the ``key``
        argument, then an optional value and type::

            from sqlalchemy import bindparam
            stmt = stmt.bindparams(
                            bindparam('name', value='jack', type_=String),
                            bindparam('timestamp', type_=DateTime)
                        )

        Above, we specified the type of :class:`.DateTime` for the
        ``timestamp`` bind, and the type of :class:`.String` for the ``name``
        bind.  In the case of ``name`` we also set the default value of
        ``"jack"``.

        Additional bound parameters can be supplied at statement execution
        time, e.g.::

            result = connection.execute(stmt,
                        timestamp=datetime.datetime(2012, 10, 8, 15, 12, 5))

        The :meth:`.TextClause.bindparams` method can be called repeatedly,
        where it will re-use existing :class:`.BindParameter` objects to add
        new information.  For example, we can call
        :meth:`.TextClause.bindparams` first with typing information, and a
        second time with value information, and it will be combined::

            stmt = text("SELECT id, name FROM user WHERE name=:name "
                        "AND timestamp=:timestamp")
            stmt = stmt.bindparams(
                bindparam('name', type_=String),
                bindparam('timestamp', type_=DateTime)
            )
            stmt = stmt.bindparams(
                name='jack',
                timestamp=datetime.datetime(2012, 10, 8, 15, 12, 5)
            )


        .. versionadded:: 0.9.0 The :meth:`.TextClause.bindparams` method
           supersedes the argument ``bindparams`` passed to
           :func:`~.expression.text`.


        u?This text() construct doesn't define a bound parameter named %rN(RÜR8R/tKeyErrorRR\titemsRÔ(R>tbindstnames_to_valuest
new_paramsRXtexistingR/R#((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRä¡s"G


usqlalchemy.sql.selectablecOs‚g|D]9}|j|kr:t|j|j|jƒƒn|^qg|jƒD]\}}t||ƒ^qP}|j||ƒS(ub	Turn this :class:`.TextClause` object into a :class:`.TextAsFrom`
        object that can be embedded into another statement.

        This function essentially bridges the gap between an entirely
        textual SELECT statement and the SQL expression language concept
        of a "selectable"::

            from sqlalchemy.sql import column, text

            stmt = text("SELECT id, name FROM some_table")
            stmt = stmt.columns(column('id'), column('name')).alias('st')

            stmt = select([mytable]).                    select_from(
                        mytable.join(stmt, mytable.c.name == stmt.c.name)
                    ).where(stmt.c.id > 5)

        Above, we used untyped :func:`.column` elements.  These can also have
        types specified, which will impact how the column behaves in
        expressions as well as determining result set behavior::

            stmt = text("SELECT id, name, timestamp FROM some_table")
            stmt = stmt.columns(
                        column('id', Integer),
                        column('name', Unicode),
                        column('timestamp', DateTime)
                    )

            for id, name, timestamp in connection.execute(stmt):
                print(id, name, timestamp)

        Keyword arguments allow just the names and types of columns to be
        specified, where the :func:`.column` elements will be generated
        automatically::

            stmt = text("SELECT id, name, timestamp FROM some_table")
            stmt = stmt.columns(
                        id=Integer,
                        name=Unicode,
                        timestamp=DateTime
                    )

            for id, name, timestamp in connection.execute(stmt):
                print(id, name, timestamp)

        The :meth:`.TextClause.columns` method provides a direct
        route to calling :meth:`.FromClause.alias` as well as
        :meth:`.SelectBase.cte` against a textual SELECT statement::

            stmt = stmt.columns(id=Integer, name=String).cte('st')

            stmt = select([sometable]).where(sometable.c.id == stmt.c.id)

        .. versionadded:: 0.9.0 :func:`.text` can now be converted into a
           fully featured "selectable" construct using the
           :meth:`.TextClause.columns` method.  This method supersedes the
           ``typemap`` argument to :func:`.text`.

        (R/R¯RERët
TextAsFrom(R>R´tcolsttypestcolR/Rt
input_cols((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR±þs?@/cCstjS(N(RR•(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRDscCs|jj|ƒS(N(RR–(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR<HscCs!|tjkrt|ƒS|SdS(N(Rtin_optGrouping(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRbLs
cs/t‡‡fd†|jjƒDƒƒ|_dS(Nc3s'|]}|jˆ|ˆfVqdS(N(R/(R¢tb(RKR(sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pys	<genexpr>Ss(tdictRÜRH(R>RKR((RKRsL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_RscKst|jjƒƒS(N(tlistRÜRH(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`VscCst|tƒo|j|jkS(N(R)RÚRâ(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^YsN(%R~R}RR‚treRgtUNICODERàR
t_execution_optionsR¸RRŠR¡R´t_hide_fromsR!R/RÄRÇR.RÈRÒtclassmethodRéRRäRRŒR±RR<RbRR_R`R^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÚÔs,	]F	R*cBs>eZdZdZejd„ƒZed„ƒZd„Z	RS(u†Represent the NULL keyword in a SQL statement.

    :class:`.Null` is accessed as a constant via the
    :func:`.null` function.

    unullcCstjS(N(RR•(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRgscCstƒS(u+Return a constant :class:`.Null` construct.(R*(tcls((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt	_instancekscCs
t|tƒS(N(R)R*(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^qs(
R~R}RR‚RR‹RRþRR^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR*]s
tFalse_cBsGeZdZdZejd„ƒZd„Zed„ƒZ	d„Z
RS(užRepresent the ``false`` keyword, or equivalent, in a SQL statement.

    :class:`.False_` is accessed as a constant via the
    :func:`.false` function.

    ufalsecCstjS(N(RR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRscCstƒS(N(tTrue_(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRsƒscCstƒS(uReturn a :class:`.False_` construct.

        E.g.::

            >>> from sqlalchemy import false
            >>> print select([t.c.x]).where(false())
            SELECT x FROM t WHERE false

        A backend which does not support true/false constants will render as
        an expression against 1 or 0::

            >>> print select([t.c.x]).where(false())
            SELECT x FROM t WHERE 0 = 1

        The :func:`.true` and :func:`.false` constants also feature
        "short circuit" operation within an :func:`.and_` or :func:`.or_`
        conjunction::

            >>> print select([t.c.x]).where(or_(t.c.x > 5, true()))
            SELECT x FROM t WHERE true

            >>> print select([t.c.x]).where(and_(t.c.x > 5, false()))
            SELECT x FROM t WHERE false

        .. versionchanged:: 0.9 :func:`.true` and :func:`.false` feature
           better integrated behavior within conjunctions and on dialects
           that don't support true/false constants.

        .. seealso::

            :func:`.true`

        (R(Rÿ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR†s$cCs
t|tƒS(N(R)R(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^¬s(R~R}RR‚RR‹RRsRþRR^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRus	&RcBsVeZdZdZejd„ƒZd„Zed„ƒZ	ed„ƒZ
d„ZRS(u›Represent the ``true`` keyword, or equivalent, in a SQL statement.

    :class:`.True_` is accessed as a constant via the
    :func:`.true` function.

    utruecCstjS(N(RR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRºscCstƒS(N(R(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRs¾scCs|dkr|jƒS|SdS(N(R!R(RÿR]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_ifnoneÁs
cCstƒS(uReturn a constant :class:`.True_` construct.

        E.g.::

            >>> from sqlalchemy import true
            >>> print select([t.c.x]).where(true())
            SELECT x FROM t WHERE true

        A backend which does not support true/false constants will render as
        an expression against 1 or 0::

            >>> print select([t.c.x]).where(true())
            SELECT x FROM t WHERE 1 = 1

        The :func:`.true` and :func:`.false` constants also feature
        "short circuit" operation within an :func:`.and_` or :func:`.or_`
        conjunction::

            >>> print select([t.c.x]).where(or_(t.c.x > 5, true()))
            SELECT x FROM t WHERE true

            >>> print select([t.c.x]).where(and_(t.c.x > 5, false()))
            SELECT x FROM t WHERE false

        .. versionchanged:: 0.9 :func:`.true` and :func:`.false` feature
           better integrated behavior within conjunctions and on dialects
           that don't support true/false constants.

        .. seealso::

            :func:`.false`

        (R(Rÿ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÈs$cCs
t|tƒS(N(R)R(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^îs(R~R}RR‚RR‹RRsRþRRR^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR°s	&t
ClauseListcBs€eZdZdZd„Zd„Zd„Zed„ƒZd„Z	e
d„Zd„Zed	„ƒZ
dd
„Zd„ZRS(
uzDescribe a list of clauses, separated by an operator.

    By default, is comma-separated, such as a column listing.

    u
clauselistcOs·|jdtjƒ|_|jdtƒ|_|jdtƒ|_|jdtƒ}|jr‘g|D]!}||ƒjd|jƒ^qd|_	n"g|D]}||ƒ^q˜|_	dS(Nuoperatorugroupugroup_contentsu_literal_as_textRa(
RERtcomma_opRuR"RÛtgroup_contentst_expression_literal_as_textRbtclauses(R>RRTttext_converterR2((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒús		1cCs
t|jƒS(N(titerR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__iter__
scCs
t|jƒS(N(RZR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__len__
scCs
t|ƒS(N(R
(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¡scCsK|jr1|jjt|ƒjd|jƒƒn|jjt|ƒƒdS(NRa(RRtappendRRbRu(R>R2((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR
s	cKs,g|jD]}|||^q
|_dS(N(R(R>RKRR2((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_scKs|jS(N(R(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`scCs,ttjg|jD]}|j^qŒƒS(N(Rùt	itertoolstchainRR…(R>R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…!scCs0|jr(tj|j|ƒr(t|ƒS|SdS(N(RÛRtis_precedentRuRö(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb%s
cKsËt|tƒr<t|jƒdkr<|jdj||St|tƒrÃt|jƒt|jƒkrÃx[tdt|jƒƒD]*}|j|j|j||s‚tSq‚W|j|jkSntSdS(u†Compare this :class:`.ClauseList` to the given :class:`.ClauseList`,
        including a comparison of all the clause items.

        iiN(R)RRZRR^trangeR.Ru(R>R]Rti((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^+s% N(R~R}RR‚RÒRRRŠR¡R
RR_R`R…R!RbR^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRòs					tBooleanClauseListcBsheZdZd„Zed„ƒZed„ƒZed„ƒZed„ƒZ	dd„Zd„ZRS(	u
clauselistcOstdƒ‚dS(Nu+BooleanClauseList has a private constructor(tNotImplementedError(R>targR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ@sc
Os8g}gtj|ƒD]}t|ƒ^q}xR|D]J}t||ƒrPq5n"t||ƒrr|jdtjƒS|j|ƒq5Wt|ƒdkr¬|djdtjƒS|rÐ|rÐ|djdtjƒSg|D]}|jd|ƒ^q×}|j	|ƒ}	||	_
t|	_||	_
t|	_tj|	_|	S(NRaii(Rtcoerce_generator_argRR)RbRRŽR
RZR6RR"RÛRuRRRR(
RÿRutcontinue_ontskip_onRRtconvert_clausesR2R?R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
_constructDs,%

"				cGs|jtjtt|ŒS(uProduce a conjunction of expressions joined by ``AND``.

        E.g.::

            from sqlalchemy import and_

            stmt = select([users_table]).where(
                            and_(
                                users_table.c.name == 'wendy',
                                users_table.c.enrolled == True
                            )
                        )

        The :func:`.and_` conjunction is also available using the
        Python ``&`` operator (though note that compound expressions
        need to be parenthesized in order to function with Python
        operator precedence behavior)::

            stmt = select([users_table]).where(
                            (users_table.c.name == 'wendy') &
                            (users_table.c.enrolled == True)
                        )

        The :func:`.and_` operation is also implicit in some cases;
        the :meth:`.Select.where` method for example can be invoked multiple
        times against a statement, which will have the effect of each
        clause being combined using :func:`.and_`::

            stmt = select([users_table]).                        where(users_table.c.name == 'wendy').                        where(users_table.c.enrolled == True)

        .. seealso::

            :func:`.or_`

        (RRRnRR(RÿR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRnfs'cGs|jtjtt|ŒS(udProduce a conjunction of expressions joined by ``OR``.

        E.g.::

            from sqlalchemy import or_

            stmt = select([users_table]).where(
                            or_(
                                users_table.c.name == 'wendy',
                                users_table.c.name == 'jack'
                            )
                        )

        The :func:`.or_` conjunction is also available using the
        Python ``|`` operator (though note that compound expressions
        need to be parenthesized in order to function with Python
        operator precedence behavior)::

            stmt = select([users_table]).where(
                            (users_table.c.name == 'wendy') |
                            (users_table.c.name == 'jack')
                        )

        .. seealso::

            :func:`.and_`

        (RRRpRR(RÿR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRpscCs|fS(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¡¯scCs*|js
|Stt|ƒjd|ƒSdS(NRa(RR”RRb(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb³s	cCs
tj|ƒS(N(RRs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRs¹sN(
R~R}R‚RÒRþRRnRpRŠR¡R!RbRs(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR=s	") tTuplecBs/eZdZd„Zed„ƒZd„ZRS(uRepresent a SQL tuple.cOs‰g|D]}t|ƒ^q}g|D]}|j^q&|_|jd|jr]|jdntjƒ|_tt|ƒj||ŽdS(uJReturn a :class:`.Tuple`.

        Main usage is to produce a composite IN construct::

            from sqlalchemy import tuple_

            tuple_(table.c.col1, table.c.col2).in_(
                [(1, 2), (5, 12), (10, 19)]
            )

        .. warning::

            The composite IN construct is not supported by all backends,
            and is currently known to work on Postgresql and MySQL,
            but not SQLite.   Unsupported backends will raise
            a subclass of :class:`~sqlalchemy.exc.DBAPIError` when such
            an expression is invoked.

        utype_iN(	RRt_type_tupleRERR•R”RRÒ(R>RRR?R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒÄs
	%cCs|fS(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¡àscCsPtgt||jƒD]-\}}td|d|d|dtƒ^qŒjƒS(NRRžR(RtzipRR R!R"Rb(R>RuRŸtoR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR äs(R~R}RRÒRŠR¡R (((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÁs	tCasecBsGeZdZdZddd„Zed„Zd„Ze	d„ƒZ
RS(u€Represent a ``CASE`` expression.

    :class:`.Case` is produced using the :func:`.case` factory function,
    as in::

        from sqlalchemy import case

        stmt = select([users_table]).                    where(
                        case(
                            [
                                (users_table.c.name == 'wendy', 'W'),
                                (users_table.c.name == 'jack', 'J')
                            ],
                            else_='E'
                        )
                    )

    Details on :class:`.Case` usage is at :func:`.case`.

    .. seealso::

        :func:`.case`

    ucasecCs.ytj|ƒ}Wntk
r&nX|dk	rmg|D]*\}}t|ƒjƒt|ƒf^q:}n7g|D]*\}}t|ƒjƒt|ƒf^qt}|rÄt|dƒdj}nd}|dkrâd|_	nt|ƒ|_	||_||_
|dk	r!t|ƒ|_n	d|_dS(uProduce a ``CASE`` expression.

        The ``CASE`` construct in SQL is a conditional object that
        acts somewhat analogously to an "if/then" construct in other
        languages.  It returns an instance of :class:`.Case`.

        :func:`.case` in its usual form is passed a list of "when"
        constructs, that is, a list of conditions and results as tuples::

            from sqlalchemy import case

            stmt = select([users_table]).\
                        where(
                            case(
                                [
                                    (users_table.c.name == 'wendy', 'W'),
                                    (users_table.c.name == 'jack', 'J')
                                ],
                                else_='E'
                            )
                        )

        The above statement will produce SQL resembling::

            SELECT id, name FROM user
            WHERE CASE
                WHEN (name = :name_1) THEN :param_1
                WHEN (name = :name_2) THEN :param_2
                ELSE :param_3
            END

        When simple equality expressions of several values against a single
        parent column are needed, :func:`.case` also has a "shorthand" format
        used via the
        :paramref:`.case.value` parameter, which is passed a column
        expression to be compared.  In this form, the :paramref:`.case.whens`
        parameter is passed as a dictionary containing expressions to be
        compared against keyed to result expressions.  The statement below is
        equivalent to the preceding statement::

            stmt = select([users_table]).\
                        where(
                            case(
                                {"wendy": "W", "jack": "J"},
                                value=users_table.c.name,
                                else_='E'
                            )
                        )

        The values which are accepted as result values in
        :paramref:`.case.whens` as well as with :paramref:`.case.else_` are
        coerced from Python literals into :func:`.bindparam` constructs.
        SQL expressions, e.g. :class:`.ColumnElement` constructs, are accepted
        as well.  To coerce a literal string expression into a constant
        expression rendered inline, use the :func:`.literal_column` construct,
        as in::

            from sqlalchemy import case, literal_column

            case(
                [
                    (
                        orderline.c.qty > 100,
                        literal_column("'greaterthan100'")
                    ),
                    (
                        orderline.c.qty > 10,
                        literal_column("'greaterthan10'")
                    )
                ],
                else_=literal_column("'lessthan10'")
            )

        The above will render the given constants without using bound
        parameters for the result values (but still for the comparison
        values), as in::

            CASE
                WHEN (orderline.qty > :qty_1) THEN 'greaterthan100'
                WHEN (orderline.qty > :qty_2) THEN 'greaterthan10'
                ELSE 'lessthan10'
            END

        :param whens: The criteria to be compared against,
         :paramref:`.case.whens` accepts two different forms, based on
         whether or not :paramref:`.case.value` is used.

         In the first form, it accepts a list of 2-tuples; each 2-tuple
         consists of ``(<sql expression>, <value>)``, where the SQL
         expression is a boolean expression and "value" is a resulting value,
         e.g.::

            case([
                (users_table.c.name == 'wendy', 'W'),
                (users_table.c.name == 'jack', 'J')
            ])

         In the second form, it accepts a Python dictionary of comparison
         values mapped to a resulting value; this form requires
         :paramref:`.case.value` to be present, and values will be compared
         using the ``==`` operator, e.g.::

            case(
                {"wendy": "W", "jack": "J"},
                value=users_table.c.name
            )

        :param value: An optional SQL expression which will be used as a
          fixed "comparison point" for candidate values within a dictionary
          passed to :paramref:`.case.whens`.

        :param else\_: An optional SQL expression which will be the evaluated
          result of the ``CASE`` construct if all expressions within
          :paramref:`.case.whens` evaluate to false.  When omitted, most
          databases will produce a result of NULL if none of the "when"
          expressions evaluate to true.


        iÿÿÿÿN(Rtdictlike_iteritemsRxR!RRbt_no_literalsRùRR#twhenstelse_(R>R"R#R#R?trtwhenlistR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ	s(y
74		cKs|jdk	r'||j||_ng|jD]*\}}||||||f^q1|_|jdk	r‹||j||_ndS(N(R#R!R"R#(R>RKRtxty((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_£s:cks\|jdk	r|jVnx!|jD]\}}|V|Vq$W|jdk	rX|jVndS(N(R#R!R"R#(R>RTR&R'((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`«s	cCs/ttjg|jƒD]}|j^qŒƒS(N(RùRRR`R…(R>R&((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…´sN(R~R}RR‚R!RÒRR_R`RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRìsš		cCst|d|dtƒS(u3Produce a :class:`.ColumnClause` object that has the
    :paramref:`.column.is_literal` flag set to True.

    :func:`.literal_column` is similar to :func:`.column`, except that
    it is more often used as a "standalone" column expression that renders
    exactly as stated; while :func:`.column` stores a string name that
    will be assumed to be part of a table and may be quoted as such,
    :func:`.literal_column` can be that, or any other arbitrary column-oriented
    expression.

    :param text: the text of the expression; can be any SQL expression.
      Quoting rules will not be applied. To specify a column-name expression
      which should be subject to quoting rules, use the :func:`column`
      function.

    :param type\_: an optional :class:`~sqlalchemy.types.TypeEngine`
      object which will
      provide result-set translation and additional expression semantics for
      this column. If left as None the type will be NullType.

    .. seealso::

        :func:`.column`

        :func:`.text`

        :ref:`sqlexpression_literal_column`

    Rt
is_literal(R¯R"(RâR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytliteral_columnºsR¾cBsAeZdZdZd„Zed„Zd„Zed„ƒZ	RS(u~Represent a ``CAST`` expression.

    :class:`.Cast` is produced using the :func:`.cast` factory function,
    as in::

        from sqlalchemy import cast, Numeric

        stmt = select([
                    cast(product_table.c.unit_price, Numeric(10, 4))
                ])

    Details on :class:`.Cast` usage is at :func:`.cast`.

    .. seealso::

        :func:`.cast`

    ucastcCs@tj|ƒ|_t|d|jƒ|_t|jƒ|_dS(uProduce a ``CAST`` expression.

        :func:`.cast` returns an instance of :class:`.Cast`.

        E.g.::

            from sqlalchemy import cast, Numeric

            stmt = select([
                        cast(product_table.c.unit_price, Numeric(10, 4))
                    ])

        The above statement will produce SQL resembling::

            SELECT CAST(unit_price AS NUMERIC(10, 4)) FROM product

        The :func:`.cast` function performs two distinct functions when
        used.  The first is that it renders the ``CAST`` expression within
        the resulting SQL string.  The second is that it associates the given
        type (e.g. :class:`.TypeEngine` class or instance) with the column
        expression on the Python side, which means the expression will take
        on the expression operator behavior associated with that type,
        as well as the bound-value handling and result-row-handling behavior
        of the type.

        .. versionchanged:: 0.9.0 :func:`.cast` now applies the given type
           to the expression such that it takes effect on the bound-value,
           e.g. the Python-to-database direction, in addition to the
           result handling, e.g. database-to-Python, direction.

        An alternative to :func:`.cast` is the :func:`.type_coerce` function.
        This function performs the second task of associating an expression
        with a specific type, but does not render the ``CAST`` expression
        in SQL.

        :param expression: A SQL expression, such as a :class:`.ColumnElement`
         expression or a Python string which will be coerced into a bound
         literal value.

        :param type_: A :class:`.TypeEngine` class or instance indicating
         the type to which the ``CAST`` should apply.

        .. seealso::

            :func:`.type_coerce` - Python-side type coercion without emitting
            CAST.

        RN(RR%RRR2RÙt
typeclause(R>RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒñs1cKs.||j||_||j||_dS(N(R2R*(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_&	scKs|j|jfS(N(R2R*(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`*	scCs
|jjS(N(R2R…(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…-	s(
R~R}RR‚RÒRR_R`RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¾Ûs	5	tExtractcBsAeZdZdZd„Zed„Zd„Zed„ƒZ	RS(u=Represent a SQL EXTRACT clause, ``extract(field FROM expr)``.uextractcKs+tj|_||_t|dƒ|_dS(u¶Return a :class:`.Extract` construct.

        This is typically available as :func:`.extract`
        as well as ``func.extract`` from the
        :data:`.func` namespace.

        N(RtINTEGERTYPERtfieldRR!R(R>R-RRT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ7	s	cKs||j||_dS(N(R(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_C	scKs
|jfS(N(R(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`F	scCs
|jjS(N(RR…(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…I	s(
R~R}RR‚RÒRR_R`RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR+2	s		t_label_referencecBs8eZdZdZd„Zed„Zed„ƒZRS(uÆWrap a column expression as it appears in a 'reference' context.

    This expression is any that inclues an _order_by_label_element,
    which is a Label, or a DESC / ASC construct wrapping a Label.

    The production of _label_reference() should occur when an expression
    is added to this context; this includes the ORDER BY or GROUP BY of a
    SELECT statement, as well as a few other places, such as the ORDER BY
    within an OVER clause.

    ulabel_referencecCs
||_dS(N(R(R>R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ\	scKs||j||_dS(N(R(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR__	scCsdS(N(((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…b	s(	R~R}RR‚RÒRR_RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR.N	s
	t_textual_label_referencecBs)eZdZd„Zejd„ƒZRS(utextual_label_referencecCs
||_dS(N(R(R>R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒj	scCstj|jƒS(N(RÚRéR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_text_clausem	s(R~R}R‚RÒRR‹R0(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR/g	s	RwcBsÈeZdZdZdddded„Zed„ƒZed„ƒZ	ed„ƒZ
ed„ƒZed„ƒZe
d„ƒZe
d	„ƒZed
„Zd„Zd„Zd
„Zdd„ZRS(uÍDefine a 'unary' expression.

    A unary expression has a single column expression
    and an operator.  The operator can be placed on the left
    (where it is called the 'operator') or right (where it is called the
    'modifier') of the column expression.

    :class:`.UnaryExpression` is the basis for several unary operators
    including those used by :func:`.desc`, :func:`.asc`, :func:`.distinct`,
    :func:`.nullsfirst` and :func:`.nullslast`.

    uunarycCs[||_||_|jd|jp*|jƒ|_tj|ƒ|_||_||_dS(NRa(	RutmodifierRbRRR%RRvtwraps_column_expression(R>RRuR1RRvR2((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRҁ	s				cCstt|ƒdtjdtƒS(uZProduce the ``NULLS FIRST`` modifier for an ``ORDER BY`` expression.

        :func:`.nullsfirst` is intended to modify the expression produced
        by :func:`.asc` or :func:`.desc`, and indicates how NULL values
        should be handled when they are encountered during ordering::


            from sqlalchemy import desc, nullsfirst

            stmt = select([users_table]).                        order_by(nullsfirst(desc(users_table.c.name)))

        The SQL expression from the above would resemble::

            SELECT id, name FROM user ORDER BY name DESC NULLS FIRST

        Like :func:`.asc` and :func:`.desc`, :func:`.nullsfirst` is typically
        invoked from the column expression itself using
        :meth:`.ColumnElement.nullsfirst`, rather than as its standalone
        function version, as in::

            stmt = (select([users_table]).
                    order_by(users_table.c.name.desc().nullsfirst())
                    )

        .. seealso::

            :func:`.asc`

            :func:`.desc`

            :func:`.nullslast`

            :meth:`.Select.order_by`

        R1R2(Rwt_literal_as_label_referenceRt
nullsfirst_opR.(Rÿtcolumn((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_nullsfirst‹	s&	cCstt|ƒdtjdtƒS(u?Produce the ``NULLS LAST`` modifier for an ``ORDER BY`` expression.

        :func:`.nullslast` is intended to modify the expression produced
        by :func:`.asc` or :func:`.desc`, and indicates how NULL values
        should be handled when they are encountered during ordering::


            from sqlalchemy import desc, nullslast

            stmt = select([users_table]).                        order_by(nullslast(desc(users_table.c.name)))

        The SQL expression from the above would resemble::

            SELECT id, name FROM user ORDER BY name DESC NULLS LAST

        Like :func:`.asc` and :func:`.desc`, :func:`.nullslast` is typically
        invoked from the column expression itself using
        :meth:`.ColumnElement.nullslast`, rather than as its standalone
        function version, as in::

            stmt = select([users_table]).                        order_by(users_table.c.name.desc().nullslast())

        .. seealso::

            :func:`.asc`

            :func:`.desc`

            :func:`.nullsfirst`

            :meth:`.Select.order_by`

        R1R2(RwR3Rtnullslast_opR.(RÿR5((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_nullslast¶	s%	cCstt|ƒdtjdtƒS(u(Produce a descending ``ORDER BY`` clause element.

        e.g.::

            from sqlalchemy import desc

            stmt = select([users_table]).order_by(desc(users_table.c.name))

        will produce SQL as::

            SELECT id, name FROM user ORDER BY name DESC

        The :func:`.desc` function is a standalone version of the
        :meth:`.ColumnElement.desc` method available on all SQL expressions,
        e.g.::


            stmt = select([users_table]).order_by(users_table.c.name.desc())

        :param column: A :class:`.ColumnElement` (e.g. scalar SQL expression)
         with which to apply the :func:`.desc` operation.

        .. seealso::

            :func:`.asc`

            :func:`.nullsfirst`

            :func:`.nullslast`

            :meth:`.Select.order_by`

        R1R2(RwR3Rtdesc_opR.(RÿR5((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_descà	s#	cCstt|ƒdtjdtƒS(u!Produce an ascending ``ORDER BY`` clause element.

        e.g.::

            from sqlalchemy import asc
            stmt = select([users_table]).order_by(asc(users_table.c.name))

        will produce SQL as::

            SELECT id, name FROM user ORDER BY name ASC

        The :func:`.asc` function is a standalone version of the
        :meth:`.ColumnElement.asc` method available on all SQL expressions,
        e.g.::


            stmt = select([users_table]).order_by(users_table.c.name.asc())

        :param column: A :class:`.ColumnElement` (e.g. scalar SQL expression)
         with which to apply the :func:`.asc` operation.

        .. seealso::

            :func:`.desc`

            :func:`.nullsfirst`

            :func:`.nullslast`

            :meth:`.Select.order_by`

        R1R2(RwR3Rtasc_opR.(RÿR5((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_asc
s"	cCs.t|ƒ}t|dtjd|jdtƒS(usProduce an column-expression-level unary ``DISTINCT`` clause.

        This applies the ``DISTINCT`` keyword to an individual column
        expression, and is typically contained within an aggregate function,
        as in::

            from sqlalchemy import distinct, func
            stmt = select([func.count(distinct(users_table.c.name))])

        The above would produce an expression resembling::

            SELECT COUNT(DISTINCT name) FROM user

        The :func:`.distinct` function is also available as a column-level
        method, e.g. :meth:`.ColumnElement.distinct`, as in::

            stmt = select([func.count(users_table.c.name.distinct())])

        The :func:`.distinct` operator is different from the
        :meth:`.Select.distinct` method of :class:`.Select`,
        which produces a ``SELECT`` statement
        with ``DISTINCT`` applied to the result set as a whole,
        e.g. a ``SELECT DISTINCT`` expression.  See that method for further
        information.

        .. seealso::

            :meth:`.ColumnElement.distinct`

            :meth:`.Select.distinct`

            :data:`.func`

        RuRR2(RRwRtdistinct_opRR.(RÿR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_create_distinct/
s$cCs-|jtjtjfkr%|jjSdSdS(N(R1RR9R;RRˆR!(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRˆX
s
cCs
|jjS(N(RR…(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…_
scKs||j||_dS(N(R(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_c
scKs
|jfS(N(R(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`f
scKsIt|tƒoH|j|jkoH|j|jkoH|jj|j|S(uXCompare this :class:`UnaryExpression` against the given
        :class:`.ClauseElement`.(R)RwRuR1RR^(R>R]R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^i
scCs¬|jdk	rIt|jd|jd|jd|jd|jd|jƒS|jjt	j
jkr›t|jdtj
ƒdtj
dt	j
d|jddƒStj|ƒSdS(NRuRvR1RR2Ra(RvR!RwRRuR1RR2RRRRbRR1R4Rs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRst
s 					
			cCs0|jr(tj|j|ƒr(t|ƒS|SdS(N(RuRRRö(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb‡
s
N(R~R}RR‚R!R.RÒRþR6R8R:R<R>RŠRˆR…RR_R`R^RsRb(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRwr	s 	+*(')			R‘cBs&eZd„Zdd„Zd„ZRS(cCs=||_tj|_||_||_d|_t|_	dS(N(
RRRRRuRvR!R1R"R2(R>RRuRv((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRҐ
s				cCs|S(N((R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb˜
scCs
|jjƒS(N(RRs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRs›
sN(R~R}RÒR!RbRs(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR‘Ž
s	RcBs†eZdZdZdddd„Zd„ZeZed„ƒZ	ed„ƒZ
ed„Zd„Z
d„Zdd	„Zd
„ZRS(u¤Represent an expression that is ``LEFT <operator> RIGHT``.

    A :class:`.BinaryExpression` is generated automatically
    whenever two column expressions are used in a Python binary expression::

        >>> from sqlalchemy.sql import column
        >>> column('a') + column('b')
        <sqlalchemy.sql.expression.BinaryExpression object at 0x101029dd0>
        >>> print column('a') + column('b')
        a + b

    ubinarycCs¦t|tjƒr$tj|ƒ}n||f|_|jd|ƒ|_|jd|ƒ|_||_	t
j|ƒ|_||_
|dkr™i|_n	||_dS(NRa(R)Rtstring_typesRt	custom_opt_origRbtlefttrightRuRR%RRvR!t	modifiers(R>RBRCRuRRvRD((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ²
s		cCsU|jtjtjfkrE|jt|jdƒt|jdƒƒStdƒ‚dS(Niiu+Boolean value of this clause is not defined(RuteqtneR¹RARx(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRyÄ
s*cCstj|jƒS(N(Rt
is_comparisonRu(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRGÌ
scCs|jj|jjS(N(RBR…RC(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…Ð
scKs.||j||_||j||_dS(N(RBRC(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_Ô
scKs|j|jfS(N(RBRC(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`Ø
sc	Ks‘t|tƒo|j|jko|jj|j|rQ|jj|j|ptj|jƒo|jj|j|o|jj|j|S(u[Compare this :class:`BinaryExpression` against the
        given :class:`BinaryExpression`.(R)RRuRBR^RCRtis_commutative(R>R]R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^Û
scCs'tj|j|ƒrt|ƒS|SdS(N(RRRuRö(R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRbí
s
c
CsZ|jdk	rCt|j|j|jd|jd|jd|jƒStt|ƒj	ƒSdS(NRvRRD(
RvR!RRBRCRuRRDR”Rs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRsó
s			
N(R~R}RR‚R!RÒRyRRŠRGR…RR_R`R^RbRs(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¢
s			RöcBseZdZdZd„Zd
d„Zed„ƒZed„ƒZ	e
d„Zd„Zed„ƒZ
d	„Zd
„Zd„Zd„ZRS(u/Represent a grouping within a column expressionugroupingcCs%||_t|dtjƒ|_dS(Nutype(RR˜RR•R(R>R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒs	cCs|S(N((R>Ra((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb	scCs|jS(N(RÄ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÅscCst|jddƒp|jS(Nu_label(R˜RR!R­(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÄscKs||j||_dS(N(R(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_scKs
|jfS(N(R(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`scCs
|jjS(N(RR…(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…scCst|j|ƒS(N(R˜R(R>tattr((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR™scCsi|jd6|jd6S(Nuelementutype(RR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRG!scCs|d|_|d|_dS(Nuelementutype(RR(R>tstate((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__setstate__$s
cKs"t|tƒo!|jj|jƒS(N(R)RöRR^(R>R]R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR^(sN(R~R}RR‚RÒR!RbRŠRÅRÄRR_R`R…R™RGRKR^(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRös					tOvercBseeZdZdZdZdZddd„Zej	d„ƒZ
d„Zed„Z
ed„ƒZRS(uRepresent an OVER clause.

    This is a special operator against a so-called
    "window" function, as well as any aggregate function,
    which produces results relative to the result set
    itself.  It's supported only by certain database
    backends.

    uovercCsg||_|dk	r6tdttj|ƒŒ|_n|dk	rctdttj|ƒŒ|_ndS(uÅProduce an :class:`.Over` object against a function.

        Used against aggregate or so-called "window" functions,
        for database backends that support window functions.

        E.g.::

            from sqlalchemy import over
            over(func.row_number(), order_by='x')

        Would produce "ROW_NUMBER() OVER(ORDER BY x)".

        :param func: a :class:`.FunctionElement` construct, typically
         generated by :data:`~.expression.func`.
        :param partition_by: a column element or string, or a list
         of such, that will be used as the PARTITION BY clause
         of the OVER construct.
        :param order_by: a column element or string, or a list
         of such, that will be used as the ORDER BY clause
         of the OVER construct.

        This function is also available from the :data:`~.expression.func`
        construct itself via the :meth:`.FunctionElement.over` method.

        .. versionadded:: 0.7

        RN(tfuncR!RR3Rtto_listtorder_bytpartition_by(R>RMRPRO((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ<s	cCs
|jjS(N(RMR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRbscKs5g|j|j|jfD]}|dk	r|^qS(N(RMRPROR!(R>RTR?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`fscKsg||j||_|jdk	r<||j||_n|jdk	rc||j||_ndS(N(RMRPR!RO(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_ks
cCsGttjg|j|j|jfD]}|dk	r"|j^q"ŒƒS(N(RùRRRMRPROR!R…(R>R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…rs	N(R~R}RR‚R!RORPRÒRR‹RR`RR_RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRL-s	&	tFunctionFiltercBsqeZdZdZd	Zd„Zd„Zd	d	d„Ze	j
d„ƒZd„Ze
d„Zed„ƒZRS(
u¬Represent a function FILTER clause.

    This is a special operator against aggregate and window functions,
    which controls which rows are passed to it.
    It's supported only by certain database backends.

    Invocation of :class:`.FunctionFilter` is via
    :meth:`.FunctionElement.filter`::

        func.count(1).filter(True)

    .. versionadded:: 1.0.0

    .. seealso::

        :meth:`.FunctionElement.filter`

    u
funcfiltercGs||_|j|ŒdS(u†Produce a :class:`.FunctionFilter` object against a function.

        Used against aggregate and window functions,
        for database backends that support the "FILTER" clause.

        E.g.::

            from sqlalchemy import funcfilter
            funcfilter(func.count(1), MyClass.name == 'some name')

        Would produce "COUNT(1) FILTER (WHERE myclass.name = 'some name')".

        This function is also available from the :data:`~.expression.func`
        construct itself via the :meth:`.FunctionElement.filter` method.

        .. versionadded:: 1.0.0

        .. seealso::

            :meth:`.FunctionElement.filter`


        N(RMtfilter(R>RMt	criterion((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRҒs	cGsRxKt|ƒD]=}t|ƒ}|jdk	rA|j|@|_q
||_q
W|S(u
Produce an additional FILTER against the function.

        This method adds additional criteria to the initial criteria
        set up by :meth:`.FunctionElement.filter`.

        Multiple criteria are joined together at SQL render time
        via ``AND``.


        N(RùRRSR!(R>RS((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRR­s
cCst|d|d|ƒS(uñProduce an OVER clause against this filtered function.

        Used against aggregate or so-called "window" functions,
        for database backends that support window functions.

        The expression::

            func.rank().filter(MyClass.y > 5).over(order_by='x')

        is shorthand for::

            from sqlalchemy import over, funcfilter
            over(funcfilter(func.rank(), MyClass.y > 5), order_by='x')

        See :func:`~.expression.over` for a full description.

        RPRO(RL(R>RPRO((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pytoverÃscCs
|jjS(N(RMR(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR×scKs/g|j|jfD]}|dk	r|^qS(N(RMRSR!(R>RTR?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`ÛscKs@||j||_|jdk	r<||j||_ndS(N(RMRSR!(R>RKR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_àscCsAttjg|j|jfD]}|dk	r|j^qŒƒS(N(RùRRRMRSR!R…(R>R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…ås	N(R~R}RR‚R!RSRÒRRRTRR‹RR`RR_RŠR…(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRQ{s			R+cBsËeZdZdZdd„Zd„Zejd„ƒZ	e
d„ƒZejd„ƒZejd„ƒZ
dd„Ze
d	„ƒZe
d
„ƒZd„Zeed„Ze
d
„ƒZdd„ZRS(uRepresents a column label (AS).

    Represent a label, as typically applied to any column-level
    element using the ``AS`` sql keyword.

    ulabelcCsÂt|tƒr|j|_nxt|tƒr<|j}q!W|r[||_|j|_n+tdt|ƒt|ddƒfƒ|_|j|_	|_|_
||_||_|g|_
dS(uÂReturn a :class:`Label` object for the
        given :class:`.ColumnElement`.

        A label changes the name of an element in the columns clause of a
        ``SELECT`` statement, typically via the ``AS`` SQL keyword.

        This functionality is more conveniently available via the
        :meth:`.ColumnElement.label` method on :class:`.ColumnElement`.

        :param name: label name

        :param obj: a :class:`.ColumnElement`.

        u
%%(%d %s)sunameuanonN(R)R+RÄRÇRRªRÁRR˜R/RÅt_elementt_typeR¥(R>RªRR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ÷s
	(		cCs|j|j|j|jffS(N(R5RªRURV(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
__reduce__scCs
|jjS(N(RRÈ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÈscCs|S(N((R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRˆ!scCs%tj|jp!t|jddƒƒS(Nutype(RR%RVR˜RUR!(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR%scCs|jjdtjƒS(NRa(RURbRtas_(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR+scCsE|jjd|ƒ}||jk	r=t|j|d|jƒS|SdS(NRaR(RURbR+RªRV(R>Ratsub_element((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRb/s	
cCs
|jjS(N(RRÂ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÂ8scCs
|jjS(N(RRÃ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÃ<scKs
|jfS(N(R(R>RT((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR`@scKs—||j||_|jjddƒ|jjddƒ|r“tdt|ƒt|jddƒfƒ|_|_	|j|_
|_|_ndS(Nuelementu_allow_label_resolveu
%%(%d %s)sunameuanon(
RUR7RER!RÁRR˜RRªRÇR/RÄRÅ(R>RKtanonymize_labelsR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR_Cs/cCs
|jjS(N(RR…(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…NscKsY|jj|d|r|n|jƒ}|jj|ƒ|jdk	rU|j|_n|S(NRª(RR·RªR¥R
RVR!R(R>R´RªRte((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR·RsN(R~R}RR‚R!RÒRWRR‹RÈRŠRˆRRRbRÂRÃR`RR.R_R…R·(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR+ís#			R¯cBsàeZdZdZdZZZZe	j
ƒZdedd„Z
d„Zd„Zd„ZeeeƒZed„ƒZe	jd„ƒZed„ƒZed	„ƒZed
„ƒZd„Zd„Zdeed
„ZRS(uRepresents a column expression from any textual string.

    The :class:`.ColumnClause`, a lightweight analogue to the
    :class:`.Column` class, is typically invoked using the
    :func:`.column` function, as in::

        from sqlalchemy import column

        id, name = column("id"), column("name")
        stmt = select([id, name]).select_from("user")

    The above statement would produce SQL like::

        SELECT id, name FROM user

    :class:`.ColumnClause` is the immediate superclass of the schema-specific
    :class:`.Column` object.  While the :class:`.Column` class has all the
    same capabilities as :class:`.ColumnClause`, the :class:`.ColumnClause`
    class is usable by itself in those cases where behavioral requirements
    are limited to simple SQL expression generation.  The object has none of
    the associations with schema-level metadata or with execution-time
    behavior that :class:`.Column` does, so in that sense is a "lightweight"
    version of :class:`.Column`.

    Full details on :class:`.ColumnClause` usage is at :func:`.column`.

    .. seealso::

        :func:`.column`

        :class:`.Column`

    ucolumncCs8||_|_||_tj|ƒ|_||_dS(uCProduce a :class:`.ColumnClause` object.

        The :class:`.ColumnClause` is a lightweight analogue to the
        :class:`.Column` class.  The :func:`.column` function can
        be invoked with just a name alone, as in::

            from sqlalchemy import column

            id, name = column("id"), column("name")
            stmt = select([id, name]).select_from("user")

        The above statement would produce SQL like::

            SELECT id, name FROM user

        Once constructed, :func:`.column` may be used like any other SQL
        expression element such as within :func:`.select` constructs::

            from sqlalchemy.sql import column

            id, name = column("id"), column("name")
            stmt = select([id, name]).select_from("user")

        The text handled by :func:`.column` is assumed to be handled
        like the name of a database column; if the string contains mixed case,
        special characters, or matches a known reserved word on the target
        backend, the column expression will render using the quoting
        behavior determined by the backend.  To produce a textual SQL
        expression that is rendered exactly without any quoting,
        use :func:`.literal_column` instead, or pass ``True`` as the
        value of :paramref:`.column.is_literal`.   Additionally, full SQL
        statements are best handled using the :func:`.text` construct.

        :func:`.column` can be used in a table-like
        fashion by combining it with the :func:`.table` function
        (which is the lightweight analogue to :class:`.Table`) to produce
        a working table construct with minimal boilerplate::

            from sqlalchemy import table, column, select

            user = table("user",
                    column("id"),
                    column("name"),
                    column("description"),
            )

            stmt = select([user.c.description]).where(user.c.name == 'wendy')

        A :func:`.column` / :func:`.table` construct like that illustrated
        above can be created in an
        ad-hoc fashion and is not associated with any
        :class:`.schema.MetaData`, DDL, or events, unlike its
        :class:`.Table` counterpart.

        .. versionchanged:: 1.0.0 :func:`.expression.column` can now
           be imported from the plain ``sqlalchemy`` namespace like any
           other SQL element.

        :param text: the text of the element.

        :param type: :class:`.types.TypeEngine` object which can associate
          this :class:`.ColumnClause` with a type.

        :param is_literal: if True, the :class:`.ColumnClause` is assumed to
          be an exact expression that will be delivered to the output with no
          quoting rules applied regardless of case sensitive settings. the
          :func:`.literal_column()` function essentially invokes
          :func:`.column` while passing ``is_literal=True``.

        .. seealso::

            :class:`.Column`

            :func:`.literal_column`

            :func:`.table`

            :func:`.text`

            :ref:`sqlexpression_literal_column`

        N(R/RªttableRR%RR((R>RâRR(R¬((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR҃sT	cCs¾|jsg|jdksg|jjsgt|dƒsgt|tƒr§|jsg|jdksg|jjr§t|dƒrˆ|j|jkp¦t|dƒo¦|j|jkS|j	j
|j	ƒSdS(Nu	proxy_setunameu_label(R(R\R!t_textualR&R)R¯RªRÄR£R§(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR«Üs		!cCs|jdS(Nutable(R7(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
_get_tableêscCs!|jj|ƒ||jd<dS(Nutable(t_memoized_propertytexpire_instanceR7(R>R\((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
_set_tableíscCs$|j}|dk	r|gSgSdS(N(R\R!(R>tt((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR…òs	cCs'tjr|jS|jjddƒSdS(Nuasciiubackslashreplace(RRiRªRl(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRzús	cCs-|j|jkr"|j|jƒS|jSdS(N(R/Rªt
_gen_labelRÄ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÅ
scCs|j|jƒS(N(RcRª(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÄ
scCs
|jdk	S(N(R\R!(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÆ
scCsw|j}|jrdS|dk	ro|jrot|ddƒrh|jjddƒd|jd|}n|jd|}t|ddƒdk	rÄt|t	ƒr¯|j
|_
q
t	||j
ƒ}nIt|jddƒdk	r
t|t	ƒsõt‚t	||jj
ƒ}n||jkre|}d}x1||jkr[|dt
|ƒ}|d7}q+W|}nt|ƒS|SdS(Nuschemau.u_uquotei(R\R(R!tnamed_with_columnR˜tschematreplaceRªR)RÊRÐtAssertionErrorR?RjR°(R>RªRbRÀRÄtcounter((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRc
s.		+	
c	Cs%t|j|d|d|jdtƒS(NRRžR(R R/RR"(R>RuRŸ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR 8
s	cKsÝ|jo!|dkp!||jk}|j|rEt|p?|jƒn|pQ|jd|jd|d|ƒ}|dkr‡|j|_n|g|_|jdk	rÀ|jj	j
|jƒ|_n|rÙ||j|j<n|S(NRR¬R((R(R!RªR@R°RR/R¥R=R±R²R³(R>R´RªtattachRµRR(R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR·>
s$		N(R~R}RR‚R!tonupdateRftserver_defaulttserver_onupdateRt!group_expirable_memoized_propertyR_R.RÒR«R^RaRŠR\R…R‹RzRÅRÄRÆRcR R"R·(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR¯[s$!Y				(	t_IdentifiedClausecBs0eZdZejjied6ƒZd„ZRS(u
identifiedu
autocommitcCs
||_dS(N(tident(R>Ro((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ]
s(R~R}R‚R
RüR¸R.RÒ(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRnW
stSavepointClausecBseZdZRS(u	savepoint(R~R}R‚(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRpa
stRollbackToSavepointClausecBseZdZRS(urollback_to_savepoint(R~R}R‚(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRqe
stReleaseSavepointClausecBseZdZRS(urelease_savepoint(R~R}R‚(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRri
sRÊcBsAeZdZd	Zd„Zd„Zd„Zd„Zd„ZRS(
uÖRepresent a SQL identifier combined with quoting preferences.

    :class:`.quoted_name` is a Python unicode/str subclass which
    represents a particular identifier name along with a
    ``quote`` flag.  This ``quote`` flag, when set to
    ``True`` or ``False``, overrides automatic quoting behavior
    for this identifier in order to either unconditionally quote
    or to not quote the name.  If left at its default of ``None``,
    quoting behavior is applied to the identifier on a per-backend basis
    based on an examination of the token itself.

    A :class:`.quoted_name` object with ``quote=True`` is also
    prevented from being modified in the case of a so-called
    "name normalize" option.  Certain database backends, such as
    Oracle, Firebird, and DB2 "normalize" case-insensitive names
    as uppercase.  The SQLAlchemy dialects for these backends
    convert from SQLAlchemy's lower-case-means-insensitive convention
    to the upper-case-means-insensitive conventions of those backends.
    The ``quote=True`` flag here will prevent this conversion from occurring
    to support an identifier that's quoted as all lower case against
    such a backend.

    The :class:`.quoted_name` object is normally created automatically
    when specifying the name for key schema constructs such as
    :class:`.Table`, :class:`.Column`, and others.  The class can also be
    passed explicitly as the name to any function that receives a name which
    can be quoted.  Such as to use the :meth:`.Engine.has_table` method with
    an unconditionally quoted name::

        from sqlaclchemy import create_engine
        from sqlalchemy.sql.elements import quoted_name

        engine = create_engine("oracle+cx_oracle://some_dsn")
        engine.has_table(quoted_name("some_table", True))

    The above logic will run the "has table" logic against the Oracle backend,
    passing the name exactly as ``"some_table"`` without converting to
    upper case.

    .. versionadded:: 0.9.0

    uquoteuloweruuppercCsf|dkrdSt||ƒr>|dks:|j|kr>|Stt|ƒj||ƒ}||_|S(N(R!R)RÐR”RÊR6(RÿR#RÐR>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR6›
s	cCsttj|ƒ|jffS(N(RÊRt	text_typeRÐ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRW«
scCs$|jr
|Stj|ƒjƒSdS(N(RÐRRstlower(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_memoized_method_lower®
s	cCs$|jr
|Stj|ƒjƒSdS(N(RÐRRstupper(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_memoized_method_upper´
s	cCs5|jddƒ}tjs-|jdƒ}nd|S(Nuasciiubackslashreplaceu'%s'(RlRtpy2ktdecode(R>tbackslashed((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR|º
s	(uquoteuloweruupper(	R~R}Rt	__slots__R6RWRuRwR|(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÊm
s*				t_truncated_labelcBs2eZdZdZdd„Zd„Zd„ZRS(uVA unicode subclass used to identify symbolic "
    "names that may require truncation.cCs.t|d|ƒ}tt|ƒj|||ƒS(Nuquote(R˜R”R|R6(RÿR#RÐ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR6Ç
scCs|jtj|ƒ|jffS(N(R5RRsRÐ(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRWÌ
scCs|S(N((R>tmap_((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt	apply_mapÏ
s(N(R~R}RR{R!R6RWR~(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR|Á
s
	tconvcBseZdZdZRS(uMark a string indicating that a name has already been converted
    by a naming convention.

    This is a string subclass that indicates a name that should not be
    subject to any further naming conventions.

    E.g. when we create a :class:`.Constraint` using a naming convention
    as follows::

        m = MetaData(naming_convention={
            "ck": "ck_%(table_name)s_%(constraint_name)s"
        })
        t = Table('t', m, Column('x', Integer),
                        CheckConstraint('x > 5', name='x5'))

    The name of the above constraint will be rendered as ``"ck_t_x5"``.
    That is, the existing name ``x5`` is used in the naming convention as the
    ``constraint_name`` token.

    In some situations, such as in migration scripts, we may be rendering
    the above :class:`.CheckConstraint` with a name that's already been
    converted.  In order to make sure the name isn't double-modified, the
    new name is applied using the :func:`.schema.conv` marker.  We can
    use this explicitly as follows::


        m = MetaData(naming_convention={
            "ck": "ck_%(table_name)s_%(constraint_name)s"
        })
        t = Table('t', m, Column('x', Integer),
                        CheckConstraint('x > 5', name=conv('ck_t_x5')))

    Where above, the :func:`.schema.conv` marker indicates that the constraint
    name here is final, and the name will render as ``"ck_t_x5"`` and not
    ``"ck_t_ck_t_x5"``

    .. versionadded:: 0.9.4

    .. seealso::

        :ref:`constraint_naming_conventions`

    ((R~R}RR{(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÓ
s+t_defer_namecBs&eZdZdZd„Zd„ZRS(uRmark a name as 'deferred' for the purposes of automated name
    generation.

    cCs@|dkrtSt|tƒr#|Stt|ƒj||ƒSdS(N(R!t
_NONE_NAMER)RR”R€R6(RÿR#((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR6	s
cCs|jtj|ƒffS(N(R5RRs(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRWs((R~R}RR{R6RW(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR€s	t_defer_none_namecBseZdZdZRS(u>indicate a 'deferred' name that was ultimately the value None.((R~R}RR{(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR‚su	_unnamed_RÁcBs/eZdZdZd„Zd„Zd„ZRS(uDA unicode subclass used to identify anonymously
    generated names.cCs.tttjj|tj|ƒƒ|jƒƒS(N(RÁRÊRRst__add__RÐ(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRƒ(scCs.tttjjtj|ƒ|ƒ|jƒƒS(N(RÁRÊRRsRƒRÐ(R>R]((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt__radd__/scCs/|jdk	r#t|||jƒS||SdS(N(RÐR!RÊ(R>R}((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR~6s((R~R}RR{RƒR„R~(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÁ"s
		cCs!t|tƒr|St|ƒSdS(u¨coerce the given value to :class:`._truncated_label`.

    Existing :class:`._truncated_label` and
    :class:`._anonymous_label` objects are passed
    unchanged.
    N(R)R|(R#((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR°?scCsAt|tjƒr|Syt|ƒSWntk
r<d|SXdS(Nuunprintable element %r(R)RR?Rjt	Exception(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_string_or_unprintableMs
cCs#tjg|D]}|j^q
ŒS(u\expand the given set of ClauseElements to be the set of all 'cloned'
    predecessors.

    (RRR9(telementsR&((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_expand_clonedWscCs#tjg|D]}|j^q
ŒS(uXexpand tables into individual columns in the
    given list of column expressions.

    (RRR¡(R‡R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_select_iterables_scs;tt|ƒƒjt|ƒƒ‰t‡fd†|DƒƒS(u¬return the intersection of sets a and b, counting
    any overlap between 'cloned' predecessors.

    The returned set is in terms of the entities present within 'a'.

    c3s'|]}ˆj|jƒr|VqdS(N(R§R9(R¢telem(tall_overlap(sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pys	<genexpr>os(tsetRˆR§(taR÷((R‹sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_cloned_intersectiongs!cs;tt|ƒƒjt|ƒƒ‰t‡fd†|DƒƒS(Nc3s'|]}ˆj|jƒs|VqdS(N(R§R9(R¢RŠ(R‹(sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pys	<genexpr>us(RŒRˆR§(RR÷((R‹sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_cloned_differencess!usqlalchemy.sql.functionscCs7t|dƒs"t||jƒr/|jdƒS|SdS(Nuname(R&R)tFunctionElementRÀR!(t	functionsR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_labeledys
cCs
t|tƒS(u:True if ``col`` is an instance of :class:`.ColumnElement`.(R)R;(Ró((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
_is_column‚scCs*tjƒ}t|ii|jd6ƒ|S(u2locate Column objects within the given expression.ucolumn(RRARRB(R2Rñ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt
_find_columnsˆscCsXt|tjƒr|St|dƒr4|jƒ}ny|jSWntk
rSdSXdS(Nu__clause_element__(R)RR?R&R(R/R—R!(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_column_as_key›s
cCs!t|dƒr|jƒS|SdS(Nu__clause_element__(R&R((R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_clause_element_as_expr¦s
cCsDt|tjƒrt|ƒSt|dƒr:|jƒ}nt|ƒS(Nu__clause_element__(R)RR?R/R&R(R(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR3­s

cCspt|tjƒrt|ƒSt|dƒr:|jƒ}nt|tƒrb|jdk	rbt	|ƒSt
|ƒSdS(Nu__clause_element__(R)RR?R/R&R(R;RˆR!R.R(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt&_literal_and_labels_as_label_reference·s

cCst|dtƒS(Ntwarn(RR"(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÅscCs¹t|tƒr|St|dƒr,|jƒSt|tjƒrz|rgtjditj|ƒd6ƒnttj	|ƒƒSt|tj
tfƒrœt|ƒSt
jdt|ƒƒ‚dS(Nu__clause_element__uOTextual SQL expression %(expr)r should be explicitly declared as text(%(expr)r)uexpruGSQL expression object or string expected, got object of type %r instead(R)RR&R(RR?twarn_limitedtellipses_stringRÚRstNoneTypeR¦t_const_exprRR\R(RR˜((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÉs

cCsFt|dƒr|jƒSt|tƒs>tjd|ƒ‚n|SdS(Nu__clause_element__uAmbiguous literal: %r.  Use the 'text()' function to indicate a SQL expression literal, or 'literal()' to indicate a bound value.(R&R(R)RRR\(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR!ßs
	
cCst|tƒot|dƒS(Nu__clause_element__(R)RR&(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_is_literalëscCs!|dkrdSt||ƒSdS(N(R!t_only_column_elements(RRª((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_only_column_elements_or_noneðscCsVt|dƒr|jƒ}nt|tƒsRtjd||t|ƒfƒ‚n|S(Nu__clause_element__uMColumn-based expression object expected for argument '%s'; got: '%s', type %s(R&R(R)R;RR\R(RRª((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRž÷scCs_t|dƒr|jƒSt|tƒsW|dkr;tƒSt||d|dtƒSn|SdS(Nu__clause_element__RR(R&R(R)RR!R*R R"(RRªR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRs
u^\w\S*$cCs$t|tƒr|St|dƒr,|jƒStj|dtƒ}|dkrrt|tj	t
fƒrˆt|ƒSnt|dƒrˆ|jS|dkrt
}nwt|tjƒrÅtt|ƒdt
ƒSt|ƒ}tj|ƒ}tjditj|ƒd6|r	dndd6ƒt|d|ƒS(	Nu__clause_element__traiseerru
selectableu*R(u”Textual column expression %(column)r should be explicitly declared with text(%(column)r), or use %(literal_column)s(%(column)r) for more specificityucolumnuliteral_column(R)RR&R(RtinspectR.R!RR›R¦RœR´R"tnumberstNumberR¯Rjt_guess_straight_columntmatchR™Rš(Rtinsptguess_is_literal((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_interpret_as_column_or_froms0

	cCsht|tttfƒr|S|dkr/tƒS|tkrBtƒS|tkrUtƒStjdƒ‚dS(NuExpected None, False, or True(	R)R*RRR!R.R"RR\(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRœ7scCs/x(|D]}|jjs|jSqWtjSdS(N(Rt_isnullRR•(targsR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_type_from_argsFs
cCsS|j|d|ƒ}|dkrOtjd|t|ddƒ|jfƒ‚n|S(Ntrequire_embeddedubGiven column '%s', attached to table '%s', failed to locate a corresponding column from table '%s'utable(tcorresponding_columnR!RtInvalidRequestErrorR˜Rz(t
fromclauseR5R¬R?((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt_corresponding_column_or_errorNs	tAnnotatedColumnElementcBsteZd„Zd„Zejd„ƒZejd„ƒZejd„ƒZejd„ƒZ	ejd„ƒZ
RS(cCsftj|||ƒtjj|ƒx<dD]4}|jj|tƒdkr*|jj	|ƒq*q*WdS(Nunameukeyutable(unameukeyutable(
R	RÒR;R<R:R7R²R.R!RE(R>RRHRI((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRÒ_s

cCs,tt|ƒj|ƒ}tjj|ƒ|S(N(R”R±RJR;R<R:(R>RHRK((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRJfscCs
|jjS(u'pull 'name' from parent, if not present(t_Annotated__elementRª(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyRªkscCs
|jjS(u(pull 'table' from parent, if not present(R²R\(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR\pscCs
|jjS(u&pull 'key' from parent, if not present(R²R/(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR/uscCs
|jjS(N(R²tinfo(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR³zscCs
|jjS(N(R²R­(R>((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR­~s(R~R}RÒRJRR‹RªR\R/R³R­(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyR±^s		(jRt
__future__RtRRRRRtvisitorsRRRt
annotationR	RtbaseR
RRR
RR¢RúRuRRR.RR!R$R'R0R3t_self_inspectsR4tColumnOperatorsR;R RÙRÚR*RRRRRnRpRRR)R¾R+R.R/RwR‘RRöRLRQR+R¯RnRpRqRrt
MemoizedSlotsRsRÊR|RR€R‚Rt_generated_labelRÁR°R†RˆR‰RŽRRŒR’R“R”R•R–R3R—RRR!RRŸRžRRgtIR¤R¨RœR«R°R±(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/sql/elements.pyt<module>s´"		6	?		ÿQÿUÿL
ÿŠ;BK€		+Î!Wÿ^-Nrnü
T/		
										
						
	(