/opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/sql/__pycache__
NameSizeModeActions
annotation.cpython-311.pyc90170644editdlrm
base.cpython-311.pyc347930644editdlrm
compiler.cpython-311.pyc1605890644editdlrm
crud.cpython-311.pyc295420644editdlrm
ddl.cpython-311.pyc545310644editdlrm
default_comparator.cpython-311.pyc137770644editdlrm
dml.cpython-311.pyc401920644editdlrm
elements.cpython-311.pyc2020440644editdlrm
expression.cpython-311.pyc96800644editdlrm
functions.cpython-311.pyc499320644editdlrm
naming.cpython-311.pyc91650644editdlrm
operators.cpython-311.pyc566280644editdlrm
schema.cpython-311.pyc2152420644editdlrm
selectable.cpython-311.pyc1759510644editdlrm
sqltypes.cpython-311.pyc1273040644editdlrm
type_api.cpython-311.pyc609250644editdlrm
util.cpython-311.pyc422240644editdlrm
visitors.cpython-311.pyc206840644editdlrm
__init__.cpython-311.pyc49350644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/sql/__pycache__/schema.cpython-311.pyc (215242B)
§ ƒ!T wÄœ,ãóè—dZddlmZddlZddlZddlZddlmZddlmZddlm Z ddl m Z dd l m Z dd l m Z dd l mZdd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZejd¦«Zejdd¦«Z d„Z!d„Z"ej#Gd„d ee j$¦«¦«Z%Gd!„d"e e%e¦«Z&Gd#„d$e e%e¦«Z'Gd%„d&e e%¦«Z(Gd'„d(e)¦«Z*Gd)„d*e*e%¦«Z+Gd+„d,e+¦«Z,Gd-„d.e)¦«Z-Gd/„d0e-e+¦«Z.ej#Gd1„d2e*e¦«¦«Z/Gd3„d4e/¦«Z0ej1d5d6¦«Gd7„d8e0¦«¦«Z2Gd9„d:e e%¦«Z3d;„Z4d<„Z5Gd=„d>e)¦«Z6Gd?„d@e6e3¦«Z7GdA„dBe7¦«Z8GdC„dDe7¦«Z9GdE„dFe7¦«Z:GdG„dHe7¦«Z;GdI„dJe e6e%¦«Z<ej=dKdLi¦«Z>GdM„dNe%¦«Z?GdO„dPe?¦«Z@GdQ„dRe)¦«ZAeAd¦«ZBeAjCZCGdS„dTe/e%¦«ZDdS)Ua/The schema module provides the building blocks for database metadata. Each element within this module describes a database entity which can be created and dropped, or is otherwise part of such an entity. Examples include tables, columns, sequences, and indexes. All entities are subclasses of :class:`~sqlalchemy.schema.SchemaItem`, and as defined in this module they are intended to be agnostic of any vendor-specific constructs. A collection of entities are grouped into a unit called :class:`~sqlalchemy.schema.MetaData`. MetaData serves as a logical grouping of schema elements, and can also be associated with an actual database connection such that operations involving the contained elements can contact the database as needed. Two of the elements here also build upon their "syntactic" counterparts, which are defined in :class:`~sqlalchemy.sql.expression.`, specifically :class:`~sqlalchemy.schema.Table` and :class:`~sqlalchemy.schema.Column`. Since these objects are part of the SQL expression language, they are usable as components in SQL expressions. é)Úabsolute_importNé)Úddl)Útype_api)Úvisitors)Ú_bind_or_error)ÚColumnCollection)Ú DialectKWArgs)ÚSchemaEventTarget)Ú _as_truncated)Ú_document_text_coercion)Ú_literal_as_text)Ú ClauseElement)Ú ColumnClause)Ú ColumnElement)Ú quoted_name)Ú TextClause)Ú TableClauseé©Úevent)Úexc)Ú inspection)ÚutilÚ retain_schemaÚ blank_schemazÙSymbol indicating that a :class:`_schema.Table` or :class:`.Sequence` should have 'None' for its schema, even if the parent :class:`_schema.MetaData` has specified a schema. .. versionadded:: 1.0.14 có—|€|S|dz|zS)Nú.©)ÚnameÚschemas úi/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/sql/schema.pyÚ_get_table_keyr#Is€Ø €~؈ à˜‰|˜dÑ"Ð"ócóJ‡‡—‰�‰€|Sˆˆfd„}tj|i|¦«S)Ncó„•—t|t¦«r)|j‰ur |j‰jvr‰j|jSdS©N)Ú isinstanceÚColumnÚtableÚkeyÚc)ÚcolÚ source_tableÚ target_tables €€r"Úreplacez!_copy_expression..replaceVsEø€å �s�FÑ #Ô #ð à” ˜\Ð)Ð)Ø”˜<œ>Ð)Ð)à”> #¤'Ô*Ð *à�4r$)rÚreplacement_traverse)Ú expressionr.r/r0s `` r"Ú_copy_expressionr3RsJøø€ØÐ˜|Ð3ØÐððððððõ Ô (¨°R¸Ñ AÔ AÐAr$có˜—eZdZdZdZd„Zd„Zd„Zee j dd¦«d„¦«¦«Z e j d „¦«Z d „Zd „Zd S) Ú SchemaItemz3Base class for items that define a database schema.Ú schema_itemcóÀ—|D]Z}|�V |j}||¦«Œ#t$r5}tjt jd|z¦«|¬¦«Yd}~ŒRd}~wwxYwŒ[dS)z7Initialize the list of child items for this SchemaItem.NzJ'SchemaItem' object, such as a 'Column' or a 'Constraint' expected, got %r)Úreplace_context)Ú_set_parent_with_dispatchÚAttributeErrorrÚraise_rÚ ArgumentError)ÚselfÚargsÚitemÚspwdÚerrs r"Ú _init_itemszSchemaItem._init_itemsis¼€ðð ð ˆDØÐð ØÔ9�Dð�D˜‘J”J�J�Jøõ&ðððÝ”KÝÔ)ð<Ø>BñCñôð),ð ñôððððððøøøøðøøøð ð ð sˆ› A¥+AÁAc ó—gS)z"used to allow SchemaVisitor accessr©r=Úkwargss r"Ú get_childrenzSchemaItem.get_children{s€àˆ r$có0—tj|dg¬¦«S)NÚinfo)Ú omit_kwarg©rÚ generic_repr©r=s r"Ú__repr__zSchemaItem.__repr__s€ÝÔ  °6°(Ð;Ñ;Ô;Ð;r$ú0.9zÖThe :attr:`.SchemaItem.quote` attribute is deprecated and will be removed in a future release. Use the :attr:`.quoted_name.quote` attribute on the ``name`` field of the target schema item to retrievequoted status.có—|jjS)z’Return the value of the ``quote`` flag passed to this schema object, for those schema items which have a ``name`` field. )r ÚquoterLs r"rPzSchemaItem.quote‚s€ðŒyŒÐr$có—iS)aZInfo dictionary associated with the object, allowing user-defined data to be associated with this :class:`.SchemaItem`. The dictionary is automatically generated when first accessed. It can also be specified in the constructor of some objects, such as :class:`_schema.Table` and :class:`_schema.Column`. rrLs r"rHzSchemaItem.info“s €ðˆ r$có’—d|jvr|j ¦«|_|j |j¦«|S)NrH)Ú__dict__rHÚcopyÚdispatchÚ_update)r=r6s r"Ú_schema_item_copyzSchemaItem._schema_item_copyŸsB€Ø �T”]Ð "Ð "Ø#œyŸ~š~Ñ/Ô/ˆKÔ ØÔ×$Ò$ T¤]Ñ3Ô3Ð3ØÐr$có.—| ||¦«Sr')Úget)r=Úeffective_schemaÚmap_s r"Ú_translate_schemazSchemaItem._translate_schema¥s€Ø�xŠxÐ(Ð*:Ñ;Ô;Ð;r$N)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú__visit_name__rBrFrMÚpropertyrÚ deprecatedrPÚmemoized_propertyrHrWr\rr$r"r5r5csÇ€€€€€à=Ð=à"€Nðððð$ððð<ð<ð<ðØ€T„_Ø ð ñôððñôñ„Xðð Ôð ð ñÔð ðððð <ð<ð<ð<ð, )`` which will be passed to :func:`.event.listen` upon construction. This alternate hook to :func:`.event.listen` allows the establishment of a listener function specific to this :class:`_schema.Table` before the "autoload" process begins. Particularly useful for the :meth:`.DDLEvents.column_reflect` event:: def listen_for_reflect(table, column_info): "handle the column reflection event" # ... t = Table( 'sometable', autoload=True, listeners=[ ('column_reflect', listen_for_reflect) ]) :param mustexist: When ``True``, indicates that this Table must already be present in the given :class:`_schema.MetaData` collection, else an exception is raised. :param prefixes: A list of strings to insert after CREATE in the CREATE TABLE statement. They will be separated by spaces. :param quote: Force quoting of this table's name on or off, corresponding to ``True`` or ``False``. When left at its default of ``None``, the column identifier will be quoted according to whether the name is case sensitive (identifiers with at least one upper case character are treated as case sensitive), or if it's a reserved word. This flag is only needed to force quoting of a reserved word which is not known by the SQLAlchemy dialect. :param quote_schema: same as 'quote' but applies to the schema identifier. :param schema: The schema name for this table, which is required if the table resides in a schema other than the default selected schema for the engine's database connection. Defaults to ``None``. If the owning :class:`_schema.MetaData` of this :class:`_schema.Table` specifies its own :paramref:`_schema.MetaData.schema` parameter, then that schema name will be applied to this :class:`_schema.Table` if the schema parameter here is set to ``None``. To set a blank schema name on a :class:`_schema.Table` that would otherwise use the schema set on the owning :class:`_schema.MetaData`, specify the special symbol :attr:`.BLANK_SCHEMA`. .. versionadded:: 1.0.14 Added the :attr:`.BLANK_SCHEMA` symbol to allow a :class:`_schema.Table` to have a blank schema name even when the parent :class:`_schema.MetaData` specifies :paramref:`_schema.MetaData.schema`. The quoting rules for the schema name are the same as those for the ``name`` parameter, in that quoting is applied for reserved words or case-sensitive names; to enable unconditional quoting for the schema name, specify the flag ``quote_schema=True`` to the constructor, or use the :class:`.quoted_name` construct to specify the name. :param useexisting: the same as :paramref:`_schema.Table.extend_existing`. :param comment: Optional string that will render an SQL comment on table creation. .. versionadded:: 1.2 Added the :paramref:`_schema.Table.comment` parameter to :class:`_schema.Table`. :param \**kw: Additional keyword arguments not mentioned above are dialect specific, and passed in the form ``_``. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. r*)ú0.7z¡The :paramref:`_schema.Table.useexisting` parameter is deprecated and will be removed in a future release. Please use :paramref:`_schema.Table.extend_existing`.)Ú useexistingcó —|st |¦«S |d|d|dd…}}}n#t$rtd¦«‚wxYw| dd¦«}|€|j}n |t urd}| dd¦«}| dd¦«}d |vr.|rd }tj |¦«‚| d d¦«}|r|rd }tj |¦«‚| d d¦«} t||¦«} | |j vrH|s(|s&t|¦«rtj d | z¦«‚|j | } |r | j|i|¤Ž| S| rtj d| z¦«‚t |¦«} | j | |¦«| ||| ¦« | j||g|¢Ri|¤Ž| j | |¦«| S#t)j¦«5| ||¦«ddd¦«YdS#1swxYwYYdSxYw)Nrrrz$Table() takes at least two argumentsr!Ú keep_existingFÚextend_existingrhz/useexisting is synonymous with extend_existing.z9keep_existing and extend_existing are mutually exclusive.Ú mustexistz–Table '%s' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.zTable '%s' not defined)ÚobjectÚ__new__Ú IndexErrorÚ TypeErrorrYr!Ú BLANK_SCHEMAÚpoprr<r#ÚtablesÚboolÚInvalidRequestErrorÚ_init_existingrUÚbefore_parent_attachÚ _add_tableÚ_initÚafter_parent_attachrÚ safe_reraiseÚ _remove_table) Úclsr>Úkwr Úmetadatar!rjrkÚmsgrlr+r*s r"rnz Table.__new__ôs€ðð 'å—>’> #Ñ&Ô&Ð &ð DØ#'¨¤7¨D°¬G°T¸!¸"¸"´X˜D�(ˆDˆDøÝð Dð Dð DÝÐBÑCÔCÐ Cð Døøøð—’˜ $Ñ'Ô'ˆØ ˆ>Ø”_ˆFˆFØ •|Ð #Ð #؈FØŸš˜°Ñ6Ô6ˆ ØŸ&š&Ð!2°EÑ:Ô:ˆØ ˜BÐ Ð Øð -ØG�ÝÔ'¨Ñ,Ô,Ð,Ø Ÿfšf ]°EÑ:Ô:ˆOà ð )˜_ð )ØMˆCÝÔ# CÑ(Ô(Ð (à—F’F˜;¨Ñ.Ô.ˆ ݘT 6Ñ*Ô*ˆØ �(”/Ð !Ð !Ø ð ¨ð ½TÀ$¹Z¼Zð ÝÔ-ð-ð03ñ 3ñôðð”O CÔ(ˆEØð 2Ø$�Ô$ dÐ1¨bÐ1Ð1Ð1؈Làð PÝÔ-Ð.FÈ#Ñ.NÑOÔOÐOÝ—N’N 3Ñ'Ô'ˆEØ ŒN× /Ò /°°xÑ @Ô @Ð @Ø × Ò   f¨eÑ 4Ô 4Ð 4ð 9Ø�” ˜D (Ð8¨TÐ8Ð8Ð8°RÐ8Ð8Ð8Ø”×2Ò2°5¸(ÑCÔCÐCØ� øð 9ÝÔ&Ñ(Ô(ð9ð9Ø×*Ò*¨4°Ñ8Ô8Ð8ð9ð9ð9ñ9ô9ð9ð9ð9ð9ð9ð9ð9ð9øøøð9ð9ð9ð9ð9ð9ð9øøøs9ž9¹AÇ.HÈI ÈH?È1 I È?I ÉI ÉI ÉI rNzÖThe :meth:`.SchemaItem.quote` method is deprecated and will be removed in a future release. Use the :attr:`.quoted_name.quote` attribute on the ``schema`` field of the target schema item to retrieve quoted status.có—|jjS)zeReturn the value of the ``quote_schema`` flag passed to this :class:`_schema.Table`. )r!rPrLs r"Ú quote_schemazTable.quote_schema5s€ðŒ{Ô Ð r$có—dS)zºConstructor for :class:`_schema.Table`. This method is a no-op. See the top-level documentation for :class:`_schema.Table` for constructor arguments. Nr)r=r>r~s r"Ú__init__zTable.__init__Ds€€€r$c 󪕗tt|¦« t|| dd¦«¦«¦«||_| dd¦«|_|j€ |j|_nF|jturd|_n0| dd¦«}t|j|¦«|_t¦«|_ t¦«|_ t¦«|_ td¬¦« |¦«t¦«|_t¦«|_|j�|j›d|j›�|_n |j|_| dd¦«}| d|du¦«}| d d¦«| d d¦«}| d d¦«} | d d¦«} | d d¦«|_| dd¦«|_d|vr| d¦«|_d|vr3| d¦«} | D]\} } t-j|| | ¦«Œ| dg¦«|_|jdi|¤Ž|r| ||| || ¬¦«|j|ŽdS)NrPr!r‚T)Ú_implicit_generatedrÚ autoload_withÚautoloadÚautoload_replaceÚ _extend_onÚ resolve_fksÚinclude_columnsÚimplicit_returningÚcommentrHÚ listenersÚprefixes)rŠr‹r)Úsuperrfr„rrrrr!rqÚsetÚindexesÚ constraintsr Ú_columnsÚPrimaryKeyConstraintr9Ú foreign_keysÚ_extra_dependenciesr Úfullnamer�rŽrHrÚlistenÚ _prefixesÚ _extra_kwargsÚ _autoloadrB)r=r rr>rEr‚r‡rˆrŠr‹rŒr�ÚevtÚfnÚ __class__s €r"ryz Table._initOs¼ø€Ý �e�TÑÔ×#Ò#Ý ˜˜fŸjšj¨°$Ñ7Ô7Ñ 8Ô 8ñ ô ð ð!ˆŒ à—j’j ¨4Ñ0Ô0ˆŒ Ø Œ;Ð Ø"œ/ˆDŒKˆKØ Œ[�LÐ (Ð (؈DŒKˆKà!Ÿ:š: n°dÑ;Ô;ˆLÝ% d¤k°<Ñ@Ô@ˆDŒKå‘u”uˆŒ Ý™5œ5ˆÔÝ(Ñ*Ô*ˆŒ ÝØ $ð ñ ô ç #Ò # DÑ )Ô )Ð )Ý™EœEˆÔÝ#&¡5¤5ˆÔ Ø Œ;Ð "Ø'+¤{ { {°D´I°IÐ>ˆDŒMˆMà œIˆDŒMàŸ š  ?°DÑ9Ô9ˆ Ø—:’:˜j¨-¸tÐ*CÑDÔDˆà� Š Ð% tÑ,Ô,Ð,Ø—Z’Z  ¨dÑ3Ô3ˆ à—j’j °Ñ5Ô5ˆ Ø Ÿ*š*Ð%6¸Ñ=Ô=ˆà"(§*¢*Ð-AÀ4Ñ"HÔ"HˆÔà—z’z )¨TÑ2Ô2ˆŒ à �VÐ Ð ØŸ š  6Ñ*Ô*ˆDŒIØ ˜&Ð Ð ØŸ š  ;Ñ/Ô/ˆIØ$ð ,ð ,‘��RÝ” ˜T 3¨Ñ+Ô+Ð+Ð+àŸš J°Ñ3Ô3ˆŒàˆÔÐ$Ð$˜VÐ$Ð$Ð$ð ð Ø �NŠNØØØØ%Ø'ð ñ ô ð ð ˆÔ˜$ÐÐÐÐr$rTNcóÄ—|r'| |jj|||||¬¦«dSt|d¬¦«}| |jj|||||¬¦«dS)N©rŠz°No engine is bound to this Table's MetaData. Pass an engine to the Table via autoload_with=, or associate the MetaData with an engine via metadata.bind=)r€)Ú run_callableÚdialectÚ reflecttabler)r=rr‡rŒÚexclude_columnsr‹rŠÚbinds r"r�zTable._autoload“s©€ð ð Ø × &Ò &ØÔ%Ô2ØØØØØ%ð 'ñ ô ð ð ð õ"Øð-ðñôˆDð × Ò Ø” Ô)ØØØØØ%ð ñ ô ð ð ð r$có0—t|jd„¬¦«S)zTReturn the set of constraints as a list, sorted by creation order. có—|jSr')Ú_creation_order)r,s r"úz+Table._sorted_constraints..¾s €°aÔ6G€r$©r+)Úsortedr”rLs r"Ú_sorted_constraintszTable._sorted_constraints¸s€õ �dÔ&Ð,GÐ,GÐHÑHÔHÐHr$có>—td„|jD¦«¦«S)a :class:`_schema.ForeignKeyConstraint` objects referred to by this :class:`_schema.Table`. This list is produced from the collection of :class:`_schema.ForeignKey` objects currently associated. .. versionadded:: 1.0.0 c3ó$K—|] }|jV—Œ dSr')Ú constraint)Ú.0Úfkcs r"ú z0Table.foreign_key_constraints..Ìs$èè€Ð?Ð? c�3”>Ð?Ð?Ð?Ð?Ð?Ð?r$)r’r—rLs r"Úforeign_key_constraintszTable.foreign_key_constraintsÀs$€õÐ?Ð?¨TÔ->Ð?Ñ?Ô?Ñ?Ô?Ð?r$có@—| dd¦«}| d|du¦«}| dd¦«}| dd¦«}| dd¦«}|r'||jkrtjd|j|f¦«‚| dd¦«}| d d¦«} |�-|jD]%} | j|vr|j | ¦«Œ&d D]} | |vrtjd ¦«‚Œd |vr| d d¦«|_d |vr| d ¦«|_ |r6|sd„|jD¦«} nd} |  |j ||| | |¬¦«|j di|¤Ž|j |ŽdS)Nr‡rˆr‰Tr!rŠz7Can't change schema of existing table from '%s' to '%s'rŒr‹)rPr‚z2Can't redefine 'quote' or 'quote_schema' argumentsrŽrHcó—g|] }|j‘Œ Sr©r ©r²r,s r"ú z(Table._init_existing..õs€Ð":Ð":Ð":¨a 1¤6Ð":Ð":Ð":r$rr¢)rrr!rr<r,r r•ÚremoverŽrHr�rrœrB) r=r>rEr‡rˆr‰r!rŠrŒr‹r,r+r¦s r"rvzTable._init_existingÎs€ØŸ š  ?°DÑ9Ô9ˆ Ø—:’:˜j¨-¸tÐ*CÑDÔDˆØ!Ÿ:š:Ð&8¸$Ñ?Ô?ÐØ—’˜H dÑ+Ô+ˆØ—Z’Z  ¨dÑ3Ô3ˆ à ð �f ¤ Ò+Ð+ÝÔ#ØIØ”˜fÐ%ñôð ð !Ÿ*š*Ð%6¸Ñ=Ô=ˆà—j’j °Ñ5Ô5ˆ à Ð &Ø”Vð ,ð ,�Ø”6 Ð0Ð0Ø”M×(Ò(¨Ñ+Ô+Ð+øà,ð ð ˆCØ�fˆ}ˆ}ÝÔ'ØHñôððð ˜Ð Ð Ø!Ÿ:š: i°Ñ6Ô6ˆDŒLà �VÐ Ð ØŸ š  6Ñ*Ô*ˆDŒIà ð Ø#ð %ð#;Ð":°4´6Ð":Ñ":Ô":��à"$�Ø �NŠNØ” ØØØØØ%ð ñ ô ð ð ˆÔÐ$Ð$˜VÐ$Ð$Ð$؈Ԙ$ÐÐÐÐr$c ó0—| |¦«dSr'©Ú_validate_dialect_kwargsrDs r"rœzTable._extra_kwargsó€Ø ×%Ò% fÑ-Ô-Ð-Ð-Ð-r$có—dSr'rrLs r"Ú_init_collectionszTable._init_collectionsó€Ø ˆr$có—dSr'rrLs r"Ú_reset_exportedzTable._reset_exported rÂr$có—|jjSr')Ú primary_keyÚ_autoincrement_columnrLs r"rÇzTable._autoincrement_column s€àÔÔ5Ð5r$có6—t|j|j¦«S)aƒReturn the 'key' for this :class:`_schema.Table`. This value is used as the dictionary key within the :attr:`_schema.MetaData.tables` collection. It is typically the same as that of :attr:`_schema.Table.name` for a table with no :attr:`_schema.Table.schema` set; otherwise it is typically of the form ``schemaname.tablename``. )r#r r!rLs r"r+z Table.keys€õ˜dœi¨¬Ñ5Ô5Ð5r$cóȇ—dd t‰j¦«gt‰j¦«gzd„‰jD¦«zˆfd„dD¦«z¦«zS)Nz Table(%s)ú, có,—g|]}t|¦«‘ŒSr©Úrepr©r²Úxs r"rºz"Table.__repr__..#s€Ð-Ð-Ð-˜1�t�A‰wŒwÐ-Ð-Ð-r$c óT•—g|]$}|›dtt‰|¦«¦«›�‘Œ%S©ú=©rÍÚgetattr©r²Úkr=s €r"rºz"Table.__repr__..$s7ø€ÐIÐIÐI¸˜!˜!˜!�T¥'¨$°Ñ"2Ô"2Ñ3Ô3Ð3Ð4ÐIÐIÐIr$©r!)ÚjoinrÍr rÚcolumnsrLs`r"rMzTable.__repr__s{ø€Ø˜TŸYšYÝ �$”)‰_Œ_Ð Ý�D”MÑ"Ô"Ð#ñ $à-Ð- ¤ Ð-Ñ-Ô-ñ .ðJÐIÐIÐI¸jÐIÑIÔIñ Jñ ô ñ ð r$có6—t|j|j¦«Sr')r#Ú descriptionr!rLs r"Ú__str__z Table.__str__'s€Ý˜dÔ.°´ Ñ<Ô<Ðs€ð( ×(Ò(¨Ñ.Ô.Ð.Ð.Ð.r$có0—| |¦«dS)aôAppend a :class:`_schema.Constraint` to this :class:`_schema.Table`. This has the effect of the constraint being included in any future CREATE TABLE statement, assuming specific DDL creation events have not been associated with the given :class:`_schema.Constraint` object. Note that this does **not** produce the constraint within the relational database automatically, for a table that already exists in the database. To add a constraint to an existing relational database table, the SQL ALTER command must be used. SQLAlchemy also provides the :class:`.AddConstraint` construct which can produce this SQL when invoked as an executable clause. Nrä)r=r±s r"Úappend_constraintzTable.append_constraintTs€ð& ×,Ò,¨TÑ2Ô2Ð2Ð2Ð2r$rgz‘the :meth:`_schema.Table.append_ddl_listener` method is deprecated and will be removed in a future release. Please refer to :class:`.DDLEvents`.cóp‡‡—ˆˆfd„}tj|d‰ dd¦«z|¦«dS)z.Append a DDL event listener to this ``Table``.có"•—‰‰||¦«dSr'r)ÚtargetÚ connectionr~Ú event_nameÚlisteners €€r"Úadapt_listenerz1Table.append_ddl_listener..adapt_listenerssø€Ø ˆH�Z ¨Ñ 4Ô 4Ð 4Ð 4Ð 4r$Úú-Ú_N©rršr0©r=rîrïrðs `` r"Úappend_ddl_listenerzTable.append_ddl_listenerisSøø€ð 5ð 5ð 5ð 5ð 5ð 5õ Œ �T˜2  × 2Ò 2°3¸Ñ <Ô <Ñ<¸nÑMÔMÐMÐMÐMr$cóV—| |j|j|¦«||_dSr')rxr r!r©r=rs r"Ú _set_parentzTable._set_parentxs)€Ø×Ò˜DœI t¤{°DÑ9Ô9Ð9Ø ˆŒ ˆ ˆ r$Fc ó^—|stj|fd|i|¤ŽS|rt|j¦«SgS)NÚcolumn_collections)rrFÚlistrÙ)r=rûÚschema_visitorr~s r"rFzTable.get_children|sX€ðð ÝÔ+ØððØ);ðØ?Aððð ð"ð ݘDœLÑ)Ô)Ð)à� r$có|—|€t|¦«}| |jj|j|j¬¦«S)z!Return True if this table exists.Nr×)rr£r¤Ú has_tabler r!©r=r§s r"Úexistsz Table.exists‰sC€ð ˆ<Ý! $Ñ'Ô'ˆDà× Ò Ø ŒLÔ " D¤I°d´kð!ñ ô ð r$cól—|€t|¦«}| tj||¬¦«dS)z×Issue a ``CREATE`` statement for this :class:`_schema.Table`, using the given :class:`.Connectable` for connectivity. .. seealso:: :meth:`_schema.MetaData.create_all`. N©Ú checkfirst©rÚ _run_visitorrÚSchemaGenerator©r=r§rs r"Úcreatez Table.create“s:€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô-¨tÀ ÐÑKÔKÐKÐKÐKr$cól—|€t|¦«}| tj||¬¦«dS)zÓIssue a ``DROP`` statement for this :class:`_schema.Table`, using the given :class:`.Connectable` for connectivity. .. seealso:: :meth:`_schema.MetaData.drop_all`. Nr©rrrÚ SchemaDropperrs r"Údropz Table.drop¢s:€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô+¨T¸jÐÑIÔIÐIÐIÐIr$c󀇇 —|€‰j}|tur‰j}n |€|j}t||¦«}||jvr)t jd‰jz¦«|j|Sg}‰jD]+}|  |  |¬¦«¦«Œ,t||g|¢R|‰j dœ‰j ¤ŽŠ ‰jD]¢}t|t ¦«rR|j}|r|‰|||¦«} n|‰jkr|nd} ‰  |  | ‰ ¬¦«¦«Œi|js2|jrŒx‰  |  |‰ ¬¦«¦«Œ£‰jD]>} | jrŒ t-| jgˆˆ fd„| jD¦«¢R| j‰ dœ| j ¤ŽŒ?‰ ‰ ¦«S)aà Return a copy of this :class:`_schema.Table` associated with a different :class:`_schema.MetaData`. E.g.:: m1 = MetaData() user = Table('user', m1, Column('id', Integer, primary_key=True)) m2 = MetaData() user_copy = user.tometadata(m2) :param metadata: Target :class:`_schema.MetaData` object, into which the new :class:`_schema.Table` object will be created. :param schema: optional string name indicating the target schema. Defaults to the special symbol :attr:`.RETAIN_SCHEMA` which indicates that no change to the schema name should be made in the new :class:`_schema.Table`. If set to a string name, the new :class:`_schema.Table` will have this new name as the ``.schema``. If set to ``None``, the schema will be set to that of the schema set on the target :class:`_schema.MetaData`, which is typically ``None`` as well, unless set explicitly:: m2 = MetaData(schema='newschema') # user_copy_one will have "newschema" as the schema name user_copy_one = user.tometadata(m2, schema=None) m3 = MetaData() # schema defaults to None # user_copy_two will have None as the schema name user_copy_two = user.tometadata(m3, schema=None) :param referred_schema_fn: optional callable which can be supplied in order to provide for the schema name that should be assigned to the referenced table of a :class:`_schema.ForeignKeyConstraint`. The callable accepts this parent :class:`_schema.Table`, the target schema that we are changing to, the :class:`_schema.ForeignKeyConstraint` object, and the existing "target schema" of that constraint. The function should return the string schema name that should be applied. E.g.:: def referred_schema_fn(table, to_schema, constraint, referred_schema): if referred_schema == 'base_tables': return referred_schema else: return to_schema new_table = table.tometadata(m2, schema="alt_schema", referred_schema_fn=referred_schema_fn) .. versionadded:: 0.9.2 :param name: optional string name indicating the target table name. If not specified or None, the table name is retained. This allows a :class:`_schema.Table` to be copied to the same :class:`_schema.MetaData` target with a new name. .. versionadded:: 1.0.0 NzBTable '%s' already exists within the given MetaData - not copying.r×)r!rŽ)r!r/có2•—g|]}t|‰‰¦«‘ŒSr)r3)r²Úexprr=r*s €€r"rºz$Table.tometadata..4s5ø€ðððàõ% T¨4°Ñ7Ô7ðððr$)ÚuniqueÚ_table)r Ú RETAIN_SCHEMAr!r#rsrÚwarnrÛrÙÚappendrTrfrŽrEr”r(ÚForeignKeyConstraintÚ_referred_schemaréÚ _type_boundÚ _column_flagr“ÚIndexÚ expressionsrrW) r=rr!Úreferred_schema_fnr r+r>r,Úreferred_schemaÚfk_constraint_schemaÚindexr*s ` @r"Ú tometadatazTable.tometadata°s–øø€ðX ˆ<Ø”9ˆDØ •]Ð "Ð "Ø”[ˆFˆFØ ˆ^Ø”_ˆFݘT 6Ñ*Ô*ˆØ �(”/Ð !Ð !Ý ŒIð*Ø,0Ô,<ñ=ñ ô ð ð”? 3Ô'Ð 'àˆØ”ð /ð /ˆAØ �KŠK˜Ÿš f˜Ñ-Ô-Ñ .Ô .Ð .Ð .ÝØ Ø ð ð ð  ð ðØ”Lð  ð ð Œkð  ð ˆðÔ!ð ð ˆAݘ!Õ1Ñ2Ô2ð Ø"#Ô"4�Ø%ðØ+=Ð+=ؘf a¨ñ,ô,Ð(Ð(ð #2°T´[Ò"@Ð"@˜˜Àdð)ð×'Ò'Ø—F’FÐ"6ÀU�FÑKÔKñôððð”]ð ð”>ðØà×'Ò'Ø—F’F &°u�FÑ=Ô=ñôðøð”\ð ð ˆEðÔ!ð ØÝ Ø” ð ðððððà %Ô 1ðñôð ð à”|ð ð ð ð”,ð ð ð ð ð×%Ò% eÑ,Ô,Ð,r$)rTN)TFr'©NF)%r]r^r_r`rarÚdeprecated_paramsrnrbrcr‚r„ryr�r®rµrvrœrÁrÄrÇr+rMrÜr§rârçrérörùrFrr r rr Ú __classcell__©r s@r"rfrf©sÔø€€€€€ðFðFðP €Nà€TÔð ðñôð69ð69ñôð69ðpØ€T„_Ø ð "ñôð!ð!ñôñ„Xð!ð ð ð ðB ðB ðB ðB ðB ðRØØð#ð#ð#ð#ðJðIðIñ„XðIðð @ð @ñ„Xð @ð4 ð4 ð4 ðl.ð.ð.ð ð ð ð ð ð ðð6ð6ñ„Xð6ðð 6ð 6ñ„Xð 6ð ð ð ð=ð=ð=ðð<ð<ñ„Xð<ð ,ð ,ð ,ð/ð/ð/ð,3ð3ð3ð*€T„_Ø ð ñôðNðNñôðNð!ð!ð!ð 7<ð ð ð ð ð ð ð ð ð Lð Lð Lð Lð Jð Jð Jð Jð"ØØ ð K-ðK-ðK-ðK-ðK-ðK-ðK-ðK-r$rfcón‡—eZdZdZdZˆfd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Z dd„Zdd„ZˆxZS)r)z(Represents a column in a database table.ræcó •—| dd¦«}| dd¦«}t|¦«}|rKt|dtj¦«r+|�t jd¦«‚| d¦«}|rC|d}t|d¦«r+|�t jd¦«‚| d¦«}|�%t|| dd¦«¦«}nd|vrt jd ¦«‚tt|¦«  ||¦«| d |¦«|_ | d d ¦«|_ | d |j ¦«|_| dd¦«|_| dd¦«|_| dd¦«|_| dd¦«|_| dd¦«|_| dd ¦«|_| dd¦«|_| dd¦«|_| dd¦«|_t1¦«|_t1¦«|_| dd¦«|_d|_d|vr| d¦«|_n4t|jt>¦«r|j  |¦«|j�½t|jtBtDf¦«r| #|j¦«n�tI|jdd ¦«rDt|jtj%¦«r%tj&d|j ›d|j›d�¦«| #tC|j¦«¦«|j�ot|jtN¦«r.| #|j (d ¦«¦«n'| #tS|j¦«¦«|j�et|jtBtDf¦«r| #|j¦«n)| #tC|jd¬¦«¦«|j�qt|jtN¦«r.| #|j (d¦«¦«n)| #tS|jd¬¦«¦«|j*|Žtj+|¦«d |vr| d ¦«|_,|j-d!i|¤ŽdS)"aI Construct a new ``Column`` object. :param name: The name of this column as represented in the database. This argument may be the first positional argument, or specified via keyword. Names which contain no upper case characters will be treated as case insensitive names, and will not be quoted unless they are a reserved word. Names with any number of upper case characters will be quoted and sent exactly. Note that this behavior applies even for databases which standardize upper case names as case insensitive such as Oracle. The name field may be omitted at construction time and applied later, at any time before the Column is associated with a :class:`_schema.Table`. This is to support convenient usage within the :mod:`~sqlalchemy.ext.declarative` extension. :param type\_: The column's type, indicated using an instance which subclasses :class:`~sqlalchemy.types.TypeEngine`. If no arguments are required for the type, the class of the type can be sent as well, e.g.:: # use a type with arguments Column('data', String(50)) # use no arguments Column('level', Integer) The ``type`` argument may be the second positional argument or specified by keyword. If the ``type`` is ``None`` or is omitted, it will first default to the special type :class:`.NullType`. If and when this :class:`_schema.Column` is made to refer to another column using :class:`_schema.ForeignKey` and/or :class:`_schema.ForeignKeyConstraint`, the type of the remote-referenced column will be copied to this column as well, at the moment that the foreign key is resolved against that remote :class:`_schema.Column` object. .. versionchanged:: 0.9.0 Support for propagation of type to a :class:`_schema.Column` from its :class:`_schema.ForeignKey` object has been improved and should be more reliable and timely. :param \*args: Additional positional arguments include various :class:`.SchemaItem` derived constructs which will be applied as options to the column. These include instances of :class:`.Constraint`, :class:`_schema.ForeignKey`, :class:`.ColumnDefault`, :class:`.Sequence`, :class:`.Computed`. In some cases an equivalent keyword argument is available such as ``server_default``, ``default`` and ``unique``. :param autoincrement: Set up "auto increment" semantics for an integer primary key column. The default value is the string ``"auto"`` which indicates that a single-column primary key that is of an INTEGER type with no stated client-side or python-side defaults should receive auto increment semantics automatically; all other varieties of primary key columns will not. This includes that :term:`DDL` such as PostgreSQL SERIAL or MySQL AUTO_INCREMENT will be emitted for this column during a table create, as well as that the column is assumed to generate new integer primary key values when an INSERT statement invokes which will be retrieved by the dialect. The flag may be set to ``True`` to indicate that a column which is part of a composite (e.g. multi-column) primary key should have autoincrement semantics, though note that only one column within a primary key may have this setting. It can also be set to ``True`` to indicate autoincrement semantics on a column that has a client-side or server-side default configured, however note that not all dialects can accommodate all styles of default as an "autoincrement". It can also be set to ``False`` on a single-column primary key that has a datatype of INTEGER in order to disable auto increment semantics for that column. .. versionchanged:: 1.1 The autoincrement flag now defaults to ``"auto"`` which indicates autoincrement semantics by default for single-column integer primary keys only; for composite (multi-column) primary keys, autoincrement is never implicitly enabled; as always, ``autoincrement=True`` will allow for at most one of those columns to be an "autoincrement" column. ``autoincrement=True`` may also be set on a :class:`_schema.Column` that has an explicit client-side or server-side default, subject to limitations of the backend database and dialect. The setting *only* has an effect for columns which are: * Integer derived (i.e. INT, SMALLINT, BIGINT). * Part of the primary key * Not referring to another column via :class:`_schema.ForeignKey`, unless the value is specified as ``'ignore_fk'``:: # turn on autoincrement for this column despite # the ForeignKey() Column('id', ForeignKey('other.id'), primary_key=True, autoincrement='ignore_fk') It is typically not desirable to have "autoincrement" enabled on a column that refers to another via foreign key, as such a column is required to refer to a value that originates from elsewhere. The setting has these two effects on columns that meet the above criteria: * DDL issued for the column will include database-specific keywords intended to signify this column as an "autoincrement" column, such as AUTO INCREMENT on MySQL, SERIAL on PostgreSQL, and IDENTITY on MS-SQL. It does *not* issue AUTOINCREMENT for SQLite since this is a special SQLite flag that is not required for autoincrementing behavior. .. seealso:: :ref:`sqlite_autoincrement` * The column will be considered to be available using an "autoincrement" method specific to the backend database, such as calling upon ``cursor.lastrowid``, using RETURNING in an INSERT statement to get at a sequence-generated value, or using special functions such as "SELECT scope_identity()". These methods are highly specific to the DBAPIs and databases in use and vary greatly, so care should be taken when associating ``autoincrement=True`` with a custom default generation function. :param default: A scalar, Python callable, or :class:`_expression.ColumnElement` expression representing the *default value* for this column, which will be invoked upon insert if this column is otherwise not specified in the VALUES clause of the insert. This is a shortcut to using :class:`.ColumnDefault` as a positional argument; see that class for full detail on the structure of the argument. Contrast this argument to :paramref:`_schema.Column.server_default` which creates a default generator on the database side. .. seealso:: :ref:`metadata_defaults_toplevel` :param doc: optional String that can be used by the ORM or similar to document attributes on the Python side. This attribute does **not** render SQL comments; use the :paramref:`_schema.Column.comment` parameter for this purpose. :param key: An optional string identifier which will identify this ``Column`` object on the :class:`_schema.Table`. When a key is provided, this is the only identifier referencing the ``Column`` within the application, including ORM attribute mapping; the ``name`` field is used only when rendering SQL. :param index: When ``True``, indicates that a :class:`_schema.Index` construct will be automatically generated for this :class:`_schema.Column`, which will result in a "CREATE INDEX" statement being emitted for the :class:`_schema.Table` when the DDL create operation is invoked. Using this flag is equivalent to making use of the :class:`_schema.Index` construct explicitly at the level of the :class:`_schema.Table` construct itself:: Table( "some_table", metadata, Column("x", Integer), Index("ix_some_table_x", "x") ) To add the :paramref:`_schema.Index.unique` flag to the :class:`_schema.Index`, set both the :paramref:`_schema.Column.unique` and :paramref:`_schema.Column.index` flags to True simultaneously, which will have the effect of rendering the "CREATE UNIQUE INDEX" DDL instruction instead of "CREATE INDEX". The name of the index is generated using the :ref:`default naming convention ` which for the :class:`_schema.Index` construct is of the form ``ix__``. As this flag is intended only as a convenience for the common case of adding a single-column, default configured index to a table definition, explicit use of the :class:`_schema.Index` construct should be preferred for most use cases, including composite indexes that encompass more than one column, indexes with SQL expressions or ordering, backend-specific index configuration options, and indexes that use a specific name. .. note:: the :attr:`_schema.Column.index` attribute on :class:`_schema.Column` **does not indicate** if this column is indexed or not, only if this flag was explicitly set here. To view indexes on a column, view the :attr:`_schema.Table.indexes` collection or use :meth:`_reflection.Inspector.get_indexes`. .. seealso:: :ref:`schema_indexes` :ref:`constraint_naming_conventions` :paramref:`_schema.Column.unique` :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. :param nullable: When set to ``False``, will cause the "NOT NULL" phrase to be added when generating DDL for the column. When ``True``, will normally generate nothing (in SQL this defaults to "NULL"), except in some very specific backend-specific edge cases where "NULL" may render explicitly. Defaults to ``True`` unless :paramref:`_schema.Column.primary_key` is also ``True``, in which case it defaults to ``False``. This parameter is only used when issuing CREATE TABLE statements. :param onupdate: A scalar, Python callable, or :class:`~sqlalchemy.sql.expression.ClauseElement` representing a default value to be applied to the column within UPDATE statements, which will be invoked upon update if this column is not present in the SET clause of the update. This is a shortcut to using :class:`.ColumnDefault` as a positional argument with ``for_update=True``. .. seealso:: :ref:`metadata_defaults` - complete discussion of onupdate :param primary_key: If ``True``, marks this column as a primary key column. Multiple columns can have this flag set to specify composite primary keys. As an alternative, the primary key of a :class:`_schema.Table` can be specified via an explicit :class:`.PrimaryKeyConstraint` object. :param server_default: A :class:`.FetchedValue` instance, str, Unicode or :func:`~sqlalchemy.sql.expression.text` construct representing the DDL DEFAULT value for the column. String types will be emitted as-is, surrounded by single quotes:: Column('x', Text, server_default="val") x TEXT DEFAULT 'val' A :func:`~sqlalchemy.sql.expression.text` expression will be rendered as-is, without quotes:: Column('y', DateTime, server_default=text('NOW()')) y DATETIME DEFAULT NOW() Strings and text() will be converted into a :class:`.DefaultClause` object upon initialization. Use :class:`.FetchedValue` to indicate that an already-existing column will generate a default value on the database side which will be available to SQLAlchemy for post-fetch after inserts. This construct does not specify any DDL and the implementation is left to the database, such as via a trigger. .. seealso:: :ref:`server_defaults` - complete discussion of server side defaults :param server_onupdate: A :class:`.FetchedValue` instance representing a database-side default generation function, such as a trigger. This indicates to SQLAlchemy that a newly generated value will be available after updates. This construct does not actually implement any kind of generation function within the database, which instead must be specified separately. .. warning:: This directive **does not** currently produce MySQL's "ON UPDATE CURRENT_TIMESTAMP()" clause. See :ref:`mysql_timestamp_onupdate` for background on how to produce this clause. .. seealso:: :ref:`triggered_columns` :param quote: Force quoting of this column's name on or off, corresponding to ``True`` or ``False``. When left at its default of ``None``, the column identifier will be quoted according to whether the name is case sensitive (identifiers with at least one upper case character are treated as case sensitive), or if it's a reserved word. This flag is only needed to force quoting of a reserved word which is not known by the SQLAlchemy dialect. :param unique: When ``True``, and the :paramref:`_schema.Column.index` parameter is left at its default value of ``False``, indicates that a :class:`_schema.UniqueConstraint` construct will be automatically generated for this :class:`_schema.Column`, which will result in a "UNIQUE CONSTRAINT" clause referring to this column being included in the ``CREATE TABLE`` statement emitted, when the DDL create operation for the :class:`_schema.Table` object is invoked. When this flag is ``True`` while the :paramref:`_schema.Column.index` parameter is simultaneously set to ``True``, the effect instead is that a :class:`_schema.Index` construct which includes the :paramref:`_schema.Index.unique` parameter set to ``True`` is generated. See the documentation for :paramref:`_schema.Column.index` for additional detail. Using this flag is equivalent to making use of the :class:`_schema.UniqueConstraint` construct explicitly at the level of the :class:`_schema.Table` construct itself:: Table( "some_table", metadata, Column("x", Integer), UniqueConstraint("x") ) The :paramref:`_schema.UniqueConstraint.name` parameter of the unique constraint object is left at its default value of ``None``; in the absence of a :ref:`naming convention ` for the enclosing :class:`_schema.MetaData`, the UNIQUE CONSTRAINT construct will be emitted as unnamed, which typically invokes a database-specific naming convention to take place. As this flag is intended only as a convenience for the common case of adding a single-column, default configured unique constraint to a table definition, explicit use of the :class:`_schema.UniqueConstraint` construct should be preferred for most use cases, including composite constraints that encompass more than one column, backend-specific index configuration options, and constraints that use a specific name. .. note:: the :attr:`_schema.Column.unique` attribute on :class:`_schema.Column` **does not indicate** if this column has a unique constraint or not, only if this flag was explicitly set here. To view indexes and unique constraints that may involve this column, view the :attr:`_schema.Table.indexes` and/or :attr:`_schema.Table.constraints` collections or use :meth:`_reflection.Inspector.get_indexes` and/or :meth:`_reflection.Inspector.get_unique_constraints` .. seealso:: :ref:`schema_unique_constraint` :ref:`constraint_naming_conventions` :paramref:`_schema.Column.index` :param system: When ``True``, indicates this is a "system" column, that is a column which is automatically made available by the database, and should not be included in the columns list for a ``CREATE TABLE`` statement. For more elaborate scenarios where columns should be conditionally rendered differently on different backends, consider custom compilation rules for :class:`.CreateColumn`. :param comment: Optional string that will render an SQL comment on table creation. .. versionadded:: 1.2 Added the :paramref:`_schema.Column.comment` parameter to :class:`_schema.Column`. r NÚtype_rz0May not pass name positionally and as a keyword.Ú _sqla_typez1May not pass type_ positionally and as a keyword.rPz9Explicit 'name' is required when sending 'quote' argumentr+rÆFÚnullableÚdefaultÚserver_defaultÚserver_onupdaterrÚsystemÚdocÚonupdateÚ autoincrementÚautorŽÚ_proxiesÚ_warn_on_bytestringzUnicode column 'z ' has non-unicode default value z specified.T©Ú for_updaterHr).rrrür(rÚ string_typesrr<Úhasattrrr‘r)r„r+rÆr)r*r+r,rrr-r.r/r0r’r”r—rŽÚcomputedr2Útyper r9Ú ColumnDefaultÚSequencerrÔÚ binary_typerÚ FetchedValueÚ_as_for_updateÚ DefaultClauserBÚset_creation_orderrHrœ)r=r>rEr r'Úcoltyper s €r"r„zColumn.__init__Cs ø€ðH �zŠz˜& $Ñ'Ô'ˆØ— ’ ˜7 DÑ)Ô)ˆÝ�D‰zŒzˆØ ð #ݘ$˜qœ'¥4Ô#4Ñ5Ô5ð #ØÐ#ÝÔ+ØJñôðð—x’x ‘{”{�Ø ð $ؘ1”gˆGå�w  Ñ-Ô-ð $ØÐ$ÝÔ+ØKñôð🚠™ œ �à Рݘt V§Z¢Z°¸Ñ%>Ô%>Ñ?Ô?ˆDˆDØ ˜Ð Ð ÝÔ#ØNñôð õ �f�dÑÔ×$Ò$ T¨5Ñ1Ô1Ð1Ø—:’:˜e TÑ*Ô*ˆŒØ!Ÿ:š: m°UÑ;Ô;ˆÔØŸ š  :°4Ô3CÐ/CÑDÔDˆŒ Ø—z’z )¨TÑ2Ô2ˆŒ Ø$ŸjšjÐ)9¸4Ñ@Ô@ˆÔØ%ŸzšzÐ*;¸TÑBÔBˆÔð —Z’Z ¨Ñ.Ô.ˆŒ Ø—j’j ¨4Ñ0Ô0ˆŒ à—j’j ¨5Ñ1Ô1ˆŒ Ø—:’:˜e TÑ*Ô*ˆŒØŸ š  :¨tÑ4Ô4ˆŒ Ø#ŸZšZ¨¸Ñ@Ô@ˆÔÝ™5œ5ˆÔÝ™EœEˆÔØ—z’z )¨TÑ2Ô2ˆŒ ؈Œ ð ˜Ð Ð Ø"ŸJšJ zÑ2Ô2ˆDŒMˆMå ˜œ Õ#4Ñ 5Ô 5ð 6Ø ŒI× /Ò /°Ñ 5Ô 5Ð 5à Œ<Ð #ݘ$œ,­½Ð(AÑBÔBð 9Ø— ’ ˜DœLÑ)Ô)Ð)Ð)å˜4œ9Ð&;¸UÑCÔCðÝ! $¤,µÔ0@ÑAÔAðÝœ ˜ ð $œx˜x˜x¨¬¨¨ð7ñôðð — ’ �M¨$¬,Ñ7Ô7Ñ8Ô8Ð8à Ô Ð *ݘ$Ô-­|Ñ<Ô<ð @Ø— ’ ˜DÔ/×>Ò>¸uÑEÔEÑFÔFÐFÐFà— ’ �M¨$Ô*=Ñ>Ô>Ñ?Ô?Ð?à Œ=Ð $ݘ$œ-­-½Ð)BÑCÔCð KØ— ’ ˜DœMÑ*Ô*Ð*Ð*à— ’ �M¨$¬-ÀDÐIÑIÔIÑJÔJÐJà Ô Ð +ݘ$Ô.µ Ñ=Ô=ð Ø— ’ ˜DÔ0×?Ò?ÀÑEÔEÑFÔFÐFÐFà— ’ Ý! $Ô"6À4ÐHÑHÔHñôðð ˆÔ˜$ÐÐå Ô Ñ%Ô%Ð%à �VÐ Ð ØŸ š  6Ñ*Ô*ˆDŒIàˆÔÐ$Ð$˜VÐ$Ð$Ð$Ð$Ð$r$c ó0—| |¦«dSr'r½rDs r"rœzColumn._extra_kwargs)r¿r$có„—|j€dS|j�*|jjr|jjdz|jzS|jS|jS)Nz (no name)r)r r*Únamed_with_columnrÛrLs r"rÜzColumn.__str__0sN€Ø Œ9Ð Ø�;Ø ŒZÐ #ØŒzÔ+ð (Ø”zÔ-°Ñ3°dÔ6FÑFÐFàÔ'Ð'àÔ#Ð #r$cóh—|jD])}|jj |j¦«rdSŒ*dS)zOReturn True if this Column references the given column via foreign key.TF)r—ræÚ proxy_setÚ intersection©r=ræÚfks r"Ú referenceszColumn.references;sG€ðÔ#ð ð ˆBØŒyÔ"×/Ò/°Ô0@ÑAÔAð Ø�t�tð ð�5r$có0—| |¦«dSr'rä)r=rIs r"Úappend_foreign_keyzColumn.append_foreign_keyEs€Ø ×$Ò$ TÑ*Ô*Ð*Ð*Ð*r$có‡—g}‰j‰jkr| d¦«‰jr| d¦«‰js| d¦«‰jr| d¦«‰jr| d¦«‰jr| d¦«‰jr| d¦«dd   t‰j¦«gt‰j ¦«gzd „‰j D¦«zd „‰j D¦«z‰jdurd ‰jjzpd gzˆfd„|D¦«z¦«zS)Nr+rÆr)r/r*r+rŽz Column(%s)rÊcó0—g|]}|®t|¦«‘ŒSr'rÌrÎs r"rºz#Column.__repr__..[s€ÐCÐCÐC˜1°Q°]�t�A‰wŒw°]°]°]r$có,—g|]}t|¦«‘ŒSrrÌrÎs r"rºz#Column.__repr__..\s€Ð1Ð1Ð1˜1�t�A‰wŒwÐ1Ð1Ð1r$z table=<%s>z table=Nonec óT•—g|]$}|›dtt‰|¦«¦«›�‘Œ%SrÑrÓrÕs €r"rºz#Column.__repr__..ds7ø€ÐDÐDÐD¸˜!˜!˜!�T¥'¨$°Ñ"2Ô"2Ñ3Ô3Ð3Ð4ÐDÐDÐDr$)r+r rrÆr)r/r*r+rŽrØrÍr9r—r”r*rÛ)r=Úkwargs` r"rMzColumn.__repr__Hs—ø€ØˆØ Œ8�t”yÒ Ð Ø �LŠL˜Ñ Ô Ð Ø Ô ð (Ø �LŠL˜Ñ 'Ô 'Ð 'ØŒ}ð %Ø �LŠL˜Ñ $Ô $Ð $Ø Œ=ð %Ø �LŠL˜Ñ $Ô $Ð $Ø Œ<ð $Ø �LŠL˜Ñ #Ô #Ð #Ø Ô ð +Ø �LŠLÐ)Ñ *Ô *Ð *Ø Œ<ð $Ø �LŠL˜Ñ #Ô #Ð #ؘdŸišiÝ �$”)‰_Œ_Ð Ý�D”I‰ŒÐñ àCÐC Ô 1ÐCÑCÔCñ Dð2Ð1 Ô 0Ð1Ñ1Ô1ñ 2ð ”J dÐ*ð>Ø$ t¤zÔ'=Ñ=ð$à#ð ñ ðEÐDÐDÐD¸eÐDÑDÔDñ Eñ  ô  ñ  ð r$c 󲇗|jstjd¦«‚|j€ |j|_t |dd¦«}|�)|‰ur%tjd|j›d|j›d�¦«‚|j‰jvrt‰j |j¦«}||urQ|jD]I}‰j  |¦«|j ‰j vr‰j   |j ¦«ŒJ‰j  |¦«‰|_ |jr‰j |¦«n3|j‰jvr%tjd|j›d‰j›d�¦«‚|jrqt%|jt&j¦«rtjd¦«‚‰ t-d|jt/|j¦«d ¬ ¦«¦«nc|jr\t%|jt&j¦«rtjd ¦«‚‰ t3|jd ¬ ¦«¦«| ˆfd „¦«dS)NzfColumn must be constructed with a non-blank name or assign a non-blank .name before adding to a Table.r*zColumn object 'z' already assigned to Table 'ú'z'Trying to redefine primary-key column 'z(' as a non-primary-key column on table 'z–The 'index' keyword argument on Column is boolean only. To create indexes with a specific name, create an explicit Index object external to the Table.T)rrzõThe 'unique' keyword argument on Column is boolean only. To create unique constraints or indexes with a specific name, append an explicit UniqueConstraint to the Table's list of elements, or create an explicit Index object external to the Table.)rcó.•—| ‰¦«Sr')Ú_set_remote_table)rIr*s €r"r«z$Column._set_parent..©sø€¨r×/CÒ/CÀEÑ/JÔ/J€r$)r rr<r+rÔrÛr•rYr—r»r±r”r0r*rÆÚ_replacer™rr(rr6rérrtrÚUniqueConstraintÚ_setup_on_memoized_fks)r=r*Úexistingr-rIs ` r"rùzColumn._set_parentgsªø€ØŒyð ÝÔ#ðEñôð ð Œ8Ð Ø”yˆDŒHå˜4 ¨$Ñ/Ô/ˆØ Ð  H°EÐ$9Ð$9ÝÔ#Ð#à”8�8�8˜XÔ1Ð1Ð1ð3ñôð ð Œ8�u”~Ð %Ð %Ø”.×$Ò$ T¤XÑ.Ô.ˆCؘ$ˆˆØÔ*ð@ð@�BØÔ&×-Ò-¨bÑ1Ô1Ð1Ø”}¨Ô(9Ð9Ð9ðÔ)×0Ò0°´Ñ?Ô?Ð?øà Œ×Ò˜tÑ$Ô$Ð$àˆŒ à Ô ð Ø Ô × &Ò & tÑ ,Ô ,Ð ,Ð ,Ø ŒX˜Ô*Ð *Ð *ÝÔ#Ð#ð”8�8�8˜Uœ^˜^˜^ð-ñôð ð Œ:ð ݘ$œ*¥dÔ&7Ñ8Ô8ð ÝÔ'ðCñôðð × #Ò #ÝØ˜$œ(­4°´ Ñ+<Ô+<È4ðñôñ ô ð ð ð Œ[ð ݘ$œ+¥tÔ'8Ñ9Ô9ð ÝÔ'ð:ñôðð × #Ò #Ý  ¤¸Ð=Ñ=Ô=ñ ô ð ð ×#Ò#Ð$JÐ$JÐ$JÐ$JÑKÔKÐKÐKÐKr$cóì—|jj|jfdf|jj|jfdfg}|D]F\}}||jjjvr.|jjj|D]}|j|ur ||¦«ŒŒGdS)NFT)r*r+r rÚ _fk_memosÚ link_to_name)r=rŸÚfk_keysÚfk_keyr\rIs r"rXzColumn._setup_on_memoized_fks«sš€àŒjŒn˜dœhÐ '¨Ð /ØŒjŒn˜dœiÐ (¨$Ð /ð ˆð%,ð ð Ñ ˆF�LؘœÔ,Ô6Ð6Ð6Øœ*Ô-Ô7¸Ô?ðð�BØ”¨,Ð6Ð6ؘ˜2™œ˜øøð  ð r$cóf—|j�|||j¦«dStj|d|¦«dS)Nrz)r*rrš)r=rŸs r"Ú_on_table_attachzColumn._on_table_attach¶s?€Ø Œ:Ð !Ø ˆBˆt�T”ZÑ Ô Ð Ð Ð å ŒL˜Ð4°bÑ 9Ô 9Ð 9Ð 9Ð 9r$c 󞇗ˆfd„|jD¦«ˆfd„|jD¦«z}i}|jD]9}|j|j}| ¦«D]\}}|||dz|z<ŒŒ:|j}|j} t|t¦«r)dx}} |  |jj di‰¤Ž¦«|j } t| t¦«r | j di‰¤Ž} |j ||j| |j|j|j|j|j|j|j|j||j| |j|jdœ|¤Ž} | | ¦«S)zuCreate a copy of this ``Column``, uninitialized. This is used in :meth:`_schema.Table.tometadata`. có8•—g|]}|j° |jdi‰¤Ž‘ŒS©r)rrT©r²r,r~s €r"rºzColumn.copy..Äs>ø€ð ð ð Ø¸!¼-ð Ø ˆAŒFˆLˆL�RˆLˆLð ð ð r$có8•—g|]}|j° |jdi‰¤Ž‘ŒSrc)r±rTrds €r"rºzColumn.copy..Æs.ø€Ð IÐ IÐ I˜a¸A¼LÐ IˆVˆQŒVˆ\ˆ\�bˆ\ˆ\Ð IÐ IÐ Ir$róN)r r'r+rÆr)rr-rr0r*r+r/r,r.rŽr)r”r—Údialect_optionsÚ _non_defaultsÚitemsr+r,r(ÚComputedrrTr9r Ú _constructorr r+rÆr)rr-rr0r*r/r.rŽrW) r=r~r>Ú column_kwargsÚ dialect_namerfÚdialect_option_keyÚdialect_option_valuer+r,r'r,s ` r"rTz Column.copy¼sÓø€ð ð ð ð Ø"&Ô"2ð ñ ô à IÐ IÐ IÐ I 4Ô#4Ð IÑ IÔ IñJˆð ˆ Ø Ô0ð )ð )ˆLØ"Ô2°<Ô@ÔNˆOð!×&Ò&Ñ(Ô(ð )ð )ñØ"Ø$ð)ðØ  3Ñ&Ð);Ñ;ñðð  )ðÔ,ˆØÔ.ˆÝ �n¥hÑ /Ô /ð 8Ø/3Ð 3ˆN˜_Ø �KŠKÐ0˜Ô+Ô0Ð6Ð6°2Ð6Ð6Ñ 7Ô 7Ð 7à” ˆÝ �eÕ.Ñ /Ô /ð %Ø�E”JÐ$Ð$ Ð$Ð$ˆEà ˆDÔ ð"ð!”ØØ”ØÔ(Ø”]Ø”;Ø”;à”*ØÔ,Ø”LØ)Ø”]Ø+ؔؔLð! ð ð$ð% ð ˆð(×%Ò% aÑ(Ô(Ð(r$NFc ó¦—d„|jD¦«}|€|j€tjd¦«‚ |j|rt |p|j¦«n|p|j|jg|¢R|r|n |r|n|j|j|j |gdœŽ}nB#t$r5}tj td|j z¦«|¬¦«Yd}~nd}~wwxYw||_|j |¦«|j�)|jj |j¦«|_|jr|j |¦«|j ||¦«|S)a$Create a *proxy* for this column. This is a copy of this ``Column`` referenced by a different parent (such as an alias or select statement). The column should be used only in select scenarios, as its full DDL/default information is not transferred. cóD—g|]}t|j|j¬¦«‘ŒS))Ú _constraint)Ú ForeignKeyrær±)r²Úfs r"rºz&Column._make_proxy..ÿs9€ð ð ð àõ �q”x¨Q¬\Ð :Ñ :Ô :ð ð ð r$Nz^Cannot initialize a sub-selectable with this Column object until its 'name' has been assigned.)r+rÆr)r2zÊCould not create a copy of this %r object. Ensure the class includes a _constructor() attribute or method which accepts the standard Column constructor arguments, or references the Column class itself.©Úfrom_)r—r rrurjr r9r+rÆr)rprr;r r*r•ràÚ _is_clone_ofrÙrYrUrz) r=Ú selectabler r+Úname_is_truncatabler~rIr,rAs r"Ú _make_proxyzColumn._make_proxyôsЀð ð àÔ&ð ñ ô ˆð ˆ<˜DœIÐ-ÝÔ)ð!ñôð ð  Ø!�Ô!à&ð)• ˜dÐ/ d¤iÑ0Ô0Ð0àÐ'˜dœiØ” ð ðð ð ð Ð>�C�C¨DÐ$> D D°d´hØ Ô,؜ؘð ð ð ˆAˆAøõð ð ð Ý ŒKÝð:ð=A¼Nñ Kñôðð ñ ô ð ð ð ð ð ð øøøøð øøøðˆŒØÔ×Ò Ñ"Ô"Ð"Ø Ô "Ð .Ø'Ô4Ô<×@Ò@ÀÄÑGÔGˆAŒNØ Ô ð *Ø Ô "× &Ò & qÑ )Ô )Ð )Ø Œ ×&Ò& q¨*Ñ5Ô5Ð5؈s°AB C +B<Â<Cc ó®—|rBd„|j|jfD¦«t|j¦«zt|j¦«zSt j|fi|¤ŽS)Ncó—g|]}|®|‘ŒSr'rrÎs r"rºz'Column.get_children..-s€ÐKÐKÐK�q¸Q¸]�¸]¸]¸]r$)r*r/rür—r”rrF)r=rýrEs r"rFzColumn.get_children*sj€Ø ð =àKÐK˜Tœ\¨4¬=Ð9ÐKÑKÔKÝ�tÔ(Ñ)Ô)ñ*å�tÔ'Ñ(Ô(ñ)ð õ  Ô,¨TÐ<Ð<°VÐ<Ð<Ð sø€€€€€Ø2Ð2à€Nðd%ðd%ðd%ðd%ðd%ðL.ð.ð.ð $ð $ð $ðððð+ð+ð+ð ð ð ð>BLðBLðBLðH ð ð ð:ð:ð:ð 6)ð6)ð6)ðrDIð4ð4ð4ð4ðl=ð=ð=ð=ð=ð=ð=ð=r$r)cóð—eZdZdZdZ dd„Zd„Zdd„Zdd„Ze d „¦«Z d „Z e e¦«Z d „Z d „Zejd „¦«Zd„Zd„Zd„Zejd„¦«Zd„Zd„Zd„Zd„ZdS)rra;Defines a dependency between two columns. ``ForeignKey`` is specified as an argument to a :class:`_schema.Column` object, e.g.:: t = Table("remote_table", metadata, Column("remote_id", ForeignKey("main_table.id")) ) Note that ``ForeignKey`` is only a marker object that defines a dependency between two columns. The actual constraint is in all cases represented by the :class:`_schema.ForeignKeyConstraint` object. This object will be generated automatically when a ``ForeignKey`` is associated with a :class:`_schema.Column` which in turn is associated with a :class:`_schema.Table`. Conversely, when :class:`_schema.ForeignKeyConstraint` is applied to a :class:`_schema.Table`, ``ForeignKey`` markers are automatically generated to be present on each associated :class:`_schema.Column`, which are also associated with the constraint object. Note that you cannot define a "composite" foreign key constraint, that is a constraint between a grouping of multiple parent/child columns, using ``ForeignKey`` objects. To define this grouping, the :class:`_schema.ForeignKeyConstraint` object must be used, and applied to the :class:`_schema.Table`. The associated ``ForeignKey`` objects are created automatically. The ``ForeignKey`` objects associated with an individual :class:`_schema.Column` object are available in the `foreign_keys` collection of that column. Further examples of foreign key configuration are in :ref:`metadata_foreignkeys`. Ú foreign_keyNFc  ó’—||_t|jtj¦«rd|_nÂt |jd¦«r|j ¦«|_n |j|_t|jt¦«stj d|jz¦«‚t|jj tj tf¦«s!tj d|jj z¦«‚||_ d|_||_||_||_||_||_||_| |_| |_| r| |_| |_dS)a� Construct a column-level FOREIGN KEY. The :class:`_schema.ForeignKey` object when constructed generates a :class:`_schema.ForeignKeyConstraint` which is associated with the parent :class:`_schema.Table` object's collection of constraints. :param column: A single target column for the key relationship. A :class:`_schema.Column` object or a column name as a string: ``tablename.columnkey`` or ``schema.tablename.columnkey``. ``columnkey`` is the ``key`` which has been assigned to the column (defaults to the column name itself), unless ``link_to_name`` is ``True`` in which case the rendered name of the column is used. :param name: Optional string. An in-database name for the key if `constraint` is not provided. :param onupdate: Optional string. If set, emit ON UPDATE when issuing DDL for this constraint. Typical values include CASCADE, DELETE and RESTRICT. :param ondelete: Optional string. If set, emit ON DELETE when issuing DDL for this constraint. Typical values include CASCADE, DELETE and RESTRICT. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY when issuing DDL for this constraint. :param link_to_name: if True, the string name given in ``column`` is the rendered name of the referenced column, not its locally assigned ``key``. :param use_alter: passed to the underlying :class:`_schema.ForeignKeyConstraint` to indicate the constraint should be generated/dropped externally from the CREATE TABLE/ DROP TABLE statement. See :paramref:`_schema.ForeignKeyConstraint.use_alter` for further description. .. seealso:: :paramref:`_schema.ForeignKeyConstraint.use_alter` :ref:`use_alter` :param match: Optional string. If set, emit MATCH when issuing DDL for this constraint. Typical values include SIMPLE, PARTIAL and FULL. :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 :param \**dialect_kw: Additional keyword arguments are dialect specific, and passed in the form ``_``. The arguments are ultimately handled by a corresponding :class:`_schema.ForeignKeyConstraint`. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. .. versionadded:: 0.9.2 NÚ__clause_element__z9String, Column, or Column-bound argument expected, got %rz8ForeignKey received Column not bound to a Table, got: %r)Ú_colspecr(rr6Ú _table_columnr7r€rrr<r*ÚNoneTyperr±ÚparentÚ use_alterr r/ÚondeleteÚ deferrableÚ initiallyr\ÚmatchrHÚ_unvalidated_dialect_kw) r=rærqr…r r/r†r‡rˆr\r‰rHÚ dialect_kws r"r„zForeignKey.__init___sW€ðjˆŒ Ý �d”m¥TÔ%6Ñ 7Ô 7ð Ø!%ˆDÔ Ð å�t”}Ð&:Ñ;Ô;ð 3Ø%)¤]×%EÒ%EÑ%GÔ%G�Ô"Ð"à%)¤]�Ô"å˜dÔ0µ,Ñ?Ô?ð ÝÔ'ð'Ø)-Ô);ñ<ñôðõ ØÔ"Ô(­4¬=½+Ð*Fñôð õÔ'ð*Ø,0Ô,>Ô,DñEñôðð&ˆŒØˆŒ Ø"ˆŒØˆŒ Ø ˆŒ Ø ˆŒ Ø$ˆŒØ"ˆŒØ(ˆÔ؈Œ Ø ð ØˆDŒIØ'1ˆÔ$Ð$Ð$r$có0—d| ¦«zS)NzForeignKey(%r))Ú _get_colspecrLs r"rMzForeignKey.__repr__Ýs€Ø $×"3Ò"3Ñ"5Ô"5Ñ5Ð5r$c óÚ—t| |¬¦«f|j|j|j|j|j|j|j|j dœ|j ¤Ž}|  |¦«S)aProduce a copy of this :class:`_schema.ForeignKey` object. The new :class:`_schema.ForeignKey` will not be bound to any :class:`_schema.Column`. This method is usually used by the internal copy procedures of :class:`_schema.Column`, :class:`_schema.Table`, and :class:`_schema.MetaData`. :param schema: The returned :class:`_schema.ForeignKey` will reference the original table and column name, qualified by the given string schema name. r×)r…r r/r†r‡rˆr\r‰) rrr�r…r r/r†r‡rˆr\r‰rŠrW)r=r!rIs r"rTzForeignKey.copyàs}€õ Ø × Ò  VÐ Ñ ,Ô ,ð  à”nؔؔ]Ø”]ؔؔnØÔ*Ø”*ð  ð  ðÔ*ð  ð  ˆð×%Ò% bÑ)Ô)Ð)r$cóÔ—|r|j\}}}|�|}|›d|›d|›�S|r|j\}}}|r |›d|›d|›�S|›d|›�S|j� |jjj›d|jj›�S|jS)zïReturn a string based 'column specification' for this :class:`_schema.ForeignKey`. This is usually the equivalent of the string-based "tablename.colname" argument first passed to the object's constructor. Nr)Ú_column_tokensr‚r*r™r+r�)r=r!Ú table_nameÚ_schemaÚtnameÚcolnames r"r�zForeignKey._get_colspecþs¿€ð ð !Ø&*Ô&9Ñ #ˆG�U˜GØÐ%Ø"�Ø!'  ¨¨¨°°Ð8Ð 8Ø ð !Ø%)Ô%8Ñ "ˆF�E˜7Øð 7Ø%+ V V¨Z¨Z¨Z¸¸ÐAÐAà", * *¨g¨gÐ6Ð6Ø Ô Ð +àÔ"Ô(Ô1Ð1Ð1ØÔ"Ô&Ð&ðð ð ”=Ð r$có—|jdS)Nr)r�rLs r"rzForeignKey._referred_schemas€àÔ" 1Ô%Ð%r$có„—|j�|jj€dS|jjjS|j\}}}t ||¦«Sr')r‚r*r+r�r#)r=r!r“r”s r"Ú _table_keyzForeignKey._table_keysJ€Ø Ô Ð )ØÔ!Ô'Ð/Ø�tàÔ)Ô/Ô3Ð3à%)Ô%8Ñ "ˆF�E˜7Ý! %¨Ñ0Ô0Ð 0r$có:—| |j¦«duS)zrReturn True if the given :class:`_schema.Table` is referenced by this :class:`_schema.ForeignKey`.N©Úcorresponding_columnrærás r"rJzForeignKey.references)s€ð ×)Ò)¨$¬+Ñ6Ô6¸dÐBÐBr$có6—| |j¦«S)aReturn the :class:`_schema.Column` in the given :class:`_schema.Table` referenced by this :class:`_schema.ForeignKey`. Returns None if this :class:`_schema.ForeignKey` does not reference the given :class:`_schema.Table`. r™rás r"Ú get_referentzForeignKey.get_referent0s€ð×)Ò)¨$¬+Ñ6Ô6Ð6r$có�—| ¦« d¦«}|€tjd|jz¦«‚t |¦«dkr| ¦«}d}n(| ¦«}| ¦«}t |¦«dkrd |¦«}nd}|||fS)z7parse a string-based _colspec into its component parts.rNz,Invalid foreign key column specification: %srr)r�Úsplitrr<r�ÚlenrrrØ)r=Úmr“r”r!s r"r�zForeignKey._column_tokens=sº€ð × Ò Ñ Ô × %Ò % cÑ *Ô *ˆØ ˆ9ÝÔ#Ø>ÀÄÑNñôð õ ˆq‰6Œ6�QŠ;ˆ;Ø—E’E‘G”GˆE؈GˆGà—e’e‘g”gˆGØ—E’E‘G”GˆEõ ˆq‰6Œ6�AŠ:ˆ:Ø—X’X˜a‘[”[ˆFˆFàˆFØ�u˜gÐ%Ð%r$cój—|j€tjd¦«‚|jj€tjd¦«‚|jj}|jjD]$}t |t ¦«r |j|usJ‚nŒ%J‚|j\}}}|€|jj � |jj }t||¦«}|||fS)NzLthis ForeignKey object does not yet have a parent Column associated with it.zCthis ForeignKey's parent column is not yet associated with a Table.) r„rrur*Ú base_columnsr(r)r�rr!r#)r=Ú parenttabler,r!r“r”Útablekeys r"Ú_resolve_col_tokenszForeignKey._resolve_col_tokens\së€Ø Œ;Ð ÝÔ)ð4ñôð ð Œ[Ô Ð &ÝÔ)ð ñôð ð ”kÔ'ˆ ð ”Ô)ð ð ˆAݘ!�VÑ$Ô$ð Ø”w +Ð-Ð-Ð-Ð-Ø�ð ð �5ð"&Ô!4ш��wà ˆ>˜kÔ2Ô9ÐEØ Ô)Ô0ˆFå! %¨Ñ0Ô0ˆØ˜H gÐ-Ð-r$c óä—t|jd¦«s ||j_n|jj|usJ‚d}|€-|j}|j |jjd¦«}n>|jr|}|jD]}|j|kr|}Œn|}|j |d¦«}|€7tj d|j ›d|j›d|j›d|›d� |j|¦«‚|  |¦«dS)NÚ_referred_tableú3Could not initialize target column for ForeignKey 'ú ' on table 'ú ': table 'ú' has no column named 'rS) r7r±r§r„r,rYr+r\r rÚNoReferencedColumnErrorr�Ú_set_target_column)r=r£r*r”Ú_columnr+r,s r"Ú_link_to_col_by_colstringz$ForeignKey._link_to_col_by_colstrings*€Ý�t”Ð(9Ñ:Ô:ð <Ø.3ˆDŒOÔ +Ð +à”?Ô2°eÐ;Ð;Ð;Ð;àˆØ ˆ?ð ”+ˆCØ”g—k’k $¤+¤/°4Ñ8Ô8ˆGˆGØ Ô ð 1؈CØ”Wð ð �Ø”6˜WÒ$Ð$Ø�Gøð ðˆCØ”g—k’k '¨4Ñ0Ô0ˆGà ˆ?ÝÔ-Ð-ð”=�=�= +Ô"2Ð"2Ð"2°E´J°J°JÀÀÀðEð” Øñ ôð ð ×Ò Ñ(Ô(Ð(Ð(Ð(r$cóÖ‡—|jjjr‰j|j_t|jjt ¦«rˆfd„}|j |¦«‰|_dS)NcóP•—|jjjr‰j|j_dSdSr')r„r9Ú_isnull)rIræs €r"Úset_typez/ForeignKey._set_target_column..set_type«s+ø€Ø”9”>Ô)ð1Ø%+¤[�B”I”N�N�Nð1ð1r$)r„r9r²r(r*rfrXræ)r=rær³s ` r"r­zForeignKey._set_target_column¢stø€à Œ;Ô Ô #ð +Ø%œ{ˆDŒKÔ õ �d”kÔ'­Ñ /Ô /ð 9ð 1ð 1ð 1ð 1ð 1ð ŒK× .Ò .¨xÑ 8Ô 8Ð 8àˆŒ ˆ ˆ r$c óà—t|jtj¦«r—| ¦«\}}}||jvr$t jd|j›d|›d|›d�|¦«‚|j |jvrt j d|z¦«‚t j d|j›d|j ›d|›d |›d� ||¦«‚t|jd ¦«r|j ¦«}|S|j}|S) a·Return the target :class:`_schema.Column` referenced by this :class:`_schema.ForeignKey`. If no target column has been established, an exception is raised. .. versionchanged:: 0.9.0 Foreign key target column resolution now occurs as soon as both the ForeignKey object and the remote Column to which it refers are both associated with the same MetaData object. z$Foreign key associated with column 'z' could not find table 'z9' with which to generate a foreign key to target column 'rSz9Table %s is no longer associated with its parent MetaDatar¨r©rªr«r€)r(r�rr6r¥rrÚNoReferencedTableErrorr„r+rur¬r r7r€)r=r£r¤r”r®s r"ræzForeignKey.column³s3€õ �d”m¥TÔ%6Ñ 7Ô 7ð à-1×-EÒ-EÑ-GÔ-GÑ *ˆK˜ 7à˜{Ô3Ð3Ð3ÝÔ0Ð0ð”{�{�{ H H H¨g¨g¨gð7ðñ ôð𔨠Ô(<Ð<Ð<ÝÔ-ð&Ø(3ñ4ñôðõ Ô1Ð1ð”}�}�} kÔ&6Ð&6Ð&6¸¸¸À'À'À'ðKðØñ ôðõ�T”]Ð$8Ñ 9Ô 9ð Ø”m×6Ò6Ñ8Ô8ˆG؈Nà”mˆG؈Nr$cóØ—|j�|j|urtjd¦«‚||_|jj |¦«|j |j¦«dS)Nz&This ForeignKey already has a parent !)r„rrur—ràr`Ú _set_tablerås r"rùzForeignKey._set_parentãsn€Ø Œ;Ð " t¤{¸&Ð'@Ð'@ÝÔ)Ø8ñôð ðˆŒ Ø Œ Ô ×$Ò$ TÑ*Ô*Ð*Ø Œ ×$Ò$ T¤_Ñ5Ô5Ð5Ð5Ð5r$có˜—| ¦«\}}}| |||¦«|j |¦«dSr')r¥r¯r±Ú_validate_dest_table)r=r*r£r¤r”s r"rUzForeignKey._set_remote_tableìsN€Ø)-×)AÒ)AÑ)CÔ)CÑ&ˆ �X˜wØ ×&Ò& {°E¸7ÑCÔCÐCØ Œ×,Ò,¨UÑ3Ô3Ð3Ð3Ð3r$có —| ¦«\}}}||f}||j|vr"|j| |¦«dSdSr')r¥r[r»)r=rr£Ú table_keyr”r^s r"Ú_remove_from_metadataz ForeignKey._remove_from_metadatañsa€Ø*.×*BÒ*BÑ*DÔ*DÑ'ˆ �Y Ø˜WÐ%ˆà �8Ô% fÔ-Ð -Ð -à Ô ˜vÔ &× -Ò -¨dÑ 3Ô 3Ð 3Ð 3Ð 3ð .Ð -r$c ó„—|j€�t|t¦«rxtggf|j|j|j|j|j|j |j dœ|j ¤Ž|_|j  ||¦«|j  |¦«|j |¦«t|jt"j¦«r‘| ¦«\}}}||f}||jjvr@|jj|} | |||¦«n#t.j$rYnwxYw|jj| |¦«dSt7|jd¦«r0|j ¦«}| |¦«dS|j}| |¦«dS)N)r…r r/r†r‡rˆr‰r€)r±r(rfrr…r r/r†r‡rˆr‰rŠÚ_append_elementr9r—ràr�rr6r¥rrsr¯rr¬r[rr7r€r­)r=rær*r£r»r”r^r®s r"r·zForeignKey._set_tableùsÞ€ð Œ?Ð "¥z°%½Ñ'?Ô'?Ð "Ý2ØØð ðœ.Ø”Y؜؜؜?Øœ.Ø”jð ð ðÔ.ð ð ˆDŒOð ŒO× +Ò +¨F°DÑ 9Ô 9Ð 9Ø ŒO× 5Ò 5°eÑ <Ô <Ð <Ø Ô×Ò˜tÑ$Ô$Ð$õ �d”m¥TÔ%6Ñ 7Ô 7ð -Ø.2×.FÒ.FÑ.HÔ.HÑ +ˆK˜ GØ Ð)ˆFؘKÔ0Ô7Ð7Ð7Ø#Ô,Ô3°IÔ>�ðØ×2Ò2°;ÀÀwÑOÔOÐOÐOøÝÔ2ðððà�Dðøøøð Ô Ô *¨6Ô 2× 9Ò 9¸$Ñ ?Ô ?Ð ?Ð ?Ð ?Ý �T”]Ð$8Ñ 9Ô 9ð -Ø”m×6Ò6Ñ8Ô8ˆGØ × #Ò # GÑ ,Ô ,Ð ,Ð ,Ð ,à”mˆGØ × #Ò # GÑ ,Ô ,Ð ,Ð ,Ð ,sÄ D#Ä#D5Ä4D5) NFNNNNNFNNr'©NN)r]r^r_r`rar„rMrTr�rbrr—Útarget_fullnamerJrœrrdr�r¥r¯r­rærùrUr¼r·rr$r"rrrr5sœ€€€€€ð%ð%ðN#€Nð ØØ ØØØØØØØ ð|2ð|2ð|2ð|2ð|6ð6ð6ð*ð*ð*ð*ð<!ð!ð!ð!ð6ð&ð&ñ„Xð&ð1ð1ð1ð�h˜|Ñ,Ô,€OðCðCðCð 7ð 7ð 7ð Ôð&ð&ñÔð&ð) s€°4×3JÒ3JÑ3LÔ3L€r$có*—| ¦«Sr'rÇrLs r"r«z_NotAColumnExpr.* s€¨$×*AÒ*AÑ*CÔ*C€r$N)r]r^r_rÅr€Ú self_grouprbÚ _from_objectsrr$r"rÂrÂ" sA€€€€€ð ð ð ð 'MÐ&LÐLИØ�HÐCÐCÑDÔD€M€M€Mr$rÂcóT—eZdZdZdZdZdZdZd d„Zd„Z d d„Z d„Z e d „¦«Z dS) ÚDefaultGeneratorz'Base class for column *default* values.Údefault_generatorFNcó—||_dSr'r4©r=r5s r"r„zDefaultGenerator.__init__6 ó €Ø$ˆŒˆˆr$cóV—||_|jr||j_dS||j_dSr')rær5r/r*rås r"rùzDefaultGenerator._set_parent9 s3€ØˆŒ Ø Œ?ð 'Ø#'ˆDŒKÔ Ð Ð à"&ˆDŒKÔ Ð Ð r$c ó@—|€t|¦«}|j|fi|¤ŽSr')rÚexecute)r=r§rEs r"rÓzDefaultGenerator.execute@ s.€Ø ˆ<Ý! $Ñ'Ô'ˆD؈tŒ|˜DÐ+Ð+ FÐ+Ð+Ð+r$có0—| |||¦«Sr')Ú_execute_default)r=ríÚ multiparamsÚparamss r"Ú_execute_on_connectionz'DefaultGenerator._execute_on_connectionE s€Ø×*Ò*¨4°¸fÑEÔEÐEr$cóJ—t|dd¦«�|jjjSdS)z4Return the connectable associated with this default.ræN)rÔrær*r§rLs r"r§zDefaultGenerator.bindH s)€õ �4˜ 4Ñ (Ô (Ð 4Ø”;Ô$Ô)Ð )à�4r$r|r')r]r^r_r`raÚ is_sequenceÚis_server_defaultrær„rùrÓrØrbr§rr$r"rÌrÌ- s“€€€€€Ø1Ð1à(€Nà€KØÐØ €Fð%ð%ð%ð%ð'ð'ð'ð,ð,ð,ð,ð FðFðFðððñ„Xðððr$rÌcóö‡—eZdZdZˆfd„Zejd„¦«Zejd„¦«Zejd„¦«Z ejej d¦«d„¦«¦«Z d„Z d „Z ee ¦«Zd „ZˆxZS) r:aïA plain default value on a column. This could correspond to a constant, a callable function, or a SQL clause. :class:`.ColumnDefault` is generated automatically whenever the ``default``, ``onupdate`` arguments of :class:`_schema.Column` are used. A :class:`.ColumnDefault` can be passed positionally as well. For example, the following:: Column('foo', Integer, default=50) Is equivalent to:: Column('foo', Integer, ColumnDefault(50)) c óú•—tt|¦«jdi|¤Žt|t¦«rt jd¦«‚tj|¦«r|  |¦«}||_ dS)a{Construct a new :class:`.ColumnDefault`. :param arg: argument representing the default value. May be one of the following: * a plain non-callable Python value, such as a string, integer, boolean, or other simple type. The default value will be used as is each time. * a SQL expression, that is one which derives from :class:`_expression.ColumnElement`. The SQL expression will be rendered into the INSERT or UPDATE statement, or in the case of a primary key column when RETURNING is not used may be pre-executed before an INSERT within a SELECT. * A Python callable. The function will be invoked for each new row subject to an INSERT or UPDATE. The callable must accept exactly zero or one positional arguments. The one-argument form will receive an instance of the :class:`.ExecutionContext`, which provides contextual information as to the current :class:`_engine.Connection` in use as well as the current statement and parameters. z4ColumnDefault may not be a server-side default type.Nr) r‘r:r„r(r=rr<rÚcallableÚ_maybe_wrap_callableÚarg)r=ràrEr s €r"r„zColumnDefault.__init__g s„ø€ð4 ,��m˜TÑ"Ô"Ô+Ð5Ð5¨fÐ5Ð5Ð5Ý �c�<Ñ (Ô (ð ÝÔ#ØFñôð õ Œ=˜Ñ Ô ð 1Ø×+Ò+¨CÑ0Ô0ˆC؈Œˆˆr$có4—tj|j¦«Sr')rrÞràrLs r"Ú is_callablezColumnDefault.is_callableŠ s€åŒ}˜TœXÑ&Ô&Ð&r$có6—t|jt¦«Sr')r(ràrrLs r"Úis_clause_elementzColumnDefault.is_clause_elementŽ s€å˜$œ(¥MÑ2Ô2Ð2r$có2—|j o|j o|j Sr')rârärÚrLs r"Ú is_scalarzColumnDefault.is_scalar’ s.€ðÔ Ð ð %ØÔ*Ð*ð %àÔ$Ð$ð r$zsqlalchemy.sql.sqltypescóT—|jr t|jj|j¦« SdSr!)rär(ràr9ÚNullType)r=Úsqltypess r"Ú _arg_is_typedzColumnDefault._arg_is_typedš s.€ð Ô !ð Ý! $¤(¤-°Ô1BÑCÔCÐCÐ Cà�5r$cój‡— tj‰d¬¦«}n(#t$rtjˆfd„‰¦«cYSwxYw|ddurt |d¦«pd}t |d¦«|z }|dkrtjˆfd„‰¦«S|dkr‰St jd ¦«‚) z±Wrap callables that don't accept a context. This is to allow easy compatibility with default callables that aren't specific to accepting of a context. T)Úno_selfcó•—‰¦«Sr'r©ÚctxrŸs €r"r«z4ColumnDefault._maybe_wrap_callable..¬ ó ø€°"°"±$´$€r$éNrcó•—‰¦«Sr'rrîs €r"r«z4ColumnDefault._maybe_wrap_callable..² rðr$rzDColumnDefault Python function takes zero or one positional arguments)rÚget_callable_argspecrpÚ wrap_callablerŸrr<)r=rŸÚargspecÚ defaultedÚ positionalss ` r"rßz"ColumnDefault._maybe_wrap_callable¢ sçø€ð <ÝÔ/°¸DÐAÑAÔAˆGˆGøÝð <ð <ð <ÝÔ%Ð&6Ð&6Ð&6Ð&6¸Ñ;Ô;Ð ;Ð ;Ð ;ð <øøøð˜A”J dÐ*Ð>­s°7¸1´:©¬ÐCÀ!ˆ ݘ' !œ*‘o”o¨ Ñ1ˆ à ˜!Ò Ð ÝÔ%Ð&6Ð&6Ð&6Ð&6¸Ñ;Ô;Ð ;à ˜AÒ Ð ØˆIåÔ#ð'ñôð s ƒš"?¾?có—|jrdSdS)NÚcolumn_onupdateÚcolumn_defaultr4rLs r"Ú _visit_namezColumnDefault._visit_name¼ s€Ø Œ?ð $Ø$Ð$à#Ð#r$có—d|j›d�S)NzColumnDefault(ú))ràrLs r"rMzColumnDefault.__repr__Ä s€€Ø&*¤h h hÐ0Ð0r$)r]r^r_r`r„rrdrâräræÚ dependenciesrêrßrûrbrarMr#r$s@r"r:r:Q sø€€€€€ððð*!ð!ð!ð!ð!ðF Ôð'ð'ñÔð'ð Ôð3ð3ñÔð3ð Ôð ð ñÔð ð ÔØ€TÔÐ0Ñ1Ô1ððñ2Ô1ñÔðð ððð4$ð$ð$ð �X˜kÑ*Ô*€Nð1ð1ð1ð1ð1ð1ð1r$r:có,—eZdZdZ dd„ZdS)ÚIdentityOptionsz–Defines options for a named database sequence or an identity column. .. versionadded:: 1.3.18 .. seealso:: :class:`.Sequence` Nc ó„—||_||_||_||_||_||_||_||_| |_dS)aiConstruct a :class:`.IdentityOptions` object. See the :class:`.Sequence` documentation for a complete description of the parameters :param start: the starting index of the sequence. :param increment: the increment value of the sequence. :param minvalue: the minimum value of the sequence. :param maxvalue: the maximum value of the sequence. :param nominvalue: no minimum value of the sequence. :param nomaxvalue: no maximum value of the sequence. :param cycle: allows the sequence to wrap around when the maxvalue or minvalue has been reached. :param cache: optional integer value; number of future values in the sequence which are calculated in advance. :param order: optional boolean value; if ``True``, renders the ORDER keyword. name. N© ÚstartÚ incrementÚminvalueÚmaxvalueÚ nominvalueÚ nomaxvalueÚcycleÚcacheÚorder) r=rrrrrrr r r s r"r„zIdentityOptions.__init__Ó sG€ð>ˆŒ Ø"ˆŒØ ˆŒ Ø ˆŒ Ø$ˆŒØ$ˆŒØˆŒ ؈Œ ؈Œ ˆ ˆ r$) NNNNNNNNN©r]r^r_r`r„rr$r"rrÈ sO€€€€€ðððØØØØØØØØð'ð'ð'ð'ð'ð'r$rcóú‡—eZdZdZdZdZ dd„Zejd„¦«Z ejd„¦«Z ej d ¦«d „¦«Z ˆfd „Z d „Zd „Zed„¦«Zdd„Zdd„Zd„ZˆxZS)r;açRepresents a named database sequence. The :class:`.Sequence` object represents the name and configurational parameters of a database sequence. It also represents a construct that can be "executed" by a SQLAlchemy :class:`_engine.Engine` or :class:`_engine.Connection`, rendering the appropriate "next value" function for the target database and returning a result. The :class:`.Sequence` is typically associated with a primary key column:: some_table = Table( 'some_table', metadata, Column('id', Integer, Sequence('some_table_seq'), primary_key=True) ) When CREATE TABLE is emitted for the above :class:`_schema.Table`, if the target platform supports sequences, a CREATE SEQUENCE statement will be emitted as well. For platforms that don't support sequences, the :class:`.Sequence` construct is ignored. .. seealso:: :class:`.CreateSequence` :class:`.DropSequence` ÚsequenceTNFc ó¬—t ||¬¦«t ||||||||| | ¬¦ « t|| ¦«|_| |_| t ur dx|_} n/|�| €|jr|jx|_} nt| |¦«|_||_t|| ¦«|_ |r|  |¦«dSdS)alConstruct a :class:`.Sequence` object. :param name: the name of the sequence. :param start: the starting index of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "START WITH" clause. If ``None``, the clause is omitted, which on most platforms indicates a starting value of 1. :param increment: the increment value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "INCREMENT BY" clause. If ``None``, the clause is omitted, which on most platforms indicates an increment of 1. :param minvalue: the minimum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "MINVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a minvalue of 1 and -2^63-1 for ascending and descending sequences, respectively. .. versionadded:: 1.0.7 :param maxvalue: the maximum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "MAXVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a maxvalue of 2^63-1 and -1 for ascending and descending sequences, respectively. .. versionadded:: 1.0.7 :param nominvalue: no minimum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "NO MINVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a minvalue of 1 and -2^63-1 for ascending and descending sequences, respectively. .. versionadded:: 1.0.7 :param nomaxvalue: no maximum value of the sequence. This value is used when the CREATE SEQUENCE command is emitted to the database as the value of the "NO MAXVALUE" clause. If ``None``, the clause is omitted, which on most platforms indicates a maxvalue of 2^63-1 and -1 for ascending and descending sequences, respectively. .. versionadded:: 1.0.7 :param cycle: allows the sequence to wrap around when the maxvalue or minvalue has been reached by an ascending or descending sequence respectively. This value is used when the CREATE SEQUENCE command is emitted to the database as the "CYCLE" clause. If the limit is reached, the next number generated will be the minvalue or maxvalue, respectively. If cycle=False (the default) any calls to nextval after the sequence has reached its maximum value will return an error. .. versionadded:: 1.0.7 :param schema: optional schema name for the sequence, if located in a schema other than the default. The rules for selecting the schema name when a :class:`_schema.MetaData` is also present are the same as that of :paramref:`_schema.Table.schema`. :param cache: optional integer value; number of future values in the sequence which are calculated in advance. Renders the CACHE keyword understood by Oracle and PostgreSQL. .. versionadded:: 1.1.12 :param order: optional boolean value; if ``True``, renders the ORDER keyword, understood by Oracle, indicating the sequence is definitively ordered. May be necessary to provide deterministic ordering using Oracle RAC. .. versionadded:: 1.1.12 :param optional: boolean value, when ``True``, indicates that this :class:`.Sequence` object only needs to be explicitly generated on backends that don't provide another way to generate primary key identifiers. Currently, it essentially means, "don't create this sequence on the PostgreSQL backend, where the SERIAL keyword creates a sequence for us automatically". :param quote: boolean value, when ``True`` or ``False``, explicitly forces quoting of the :paramref:`_schema.Sequence.name` on or off. When left at its default of ``None``, normal quoting rules based on casing and reserved words take place. :param quote_schema: Set the quoting preferences for the ``schema`` name. :param metadata: optional :class:`_schema.MetaData` object which this :class:`.Sequence` will be associated with. A :class:`.Sequence` that is associated with a :class:`_schema.MetaData` gains the following capabilities: * The :class:`.Sequence` will inherit the :paramref:`_schema.MetaData.schema` parameter specified to the target :class:`_schema.MetaData`, which affects the production of CREATE / DROP DDL, if any. * The :meth:`.Sequence.create` and :meth:`.Sequence.drop` methods automatically use the engine bound to the :class:`_schema.MetaData` object, if any. * The :meth:`_schema.MetaData.create_all` and :meth:`_schema.MetaData.drop_all` methods will emit CREATE / DROP for this :class:`.Sequence`, even if the :class:`.Sequence` is not associated with any :class:`_schema.Table` / :class:`_schema.Column` that's a member of this :class:`_schema.MetaData`. The above behaviors can only occur if the :class:`.Sequence` is explicitly associated with the :class:`_schema.MetaData` via this parameter. .. seealso:: :ref:`sequence_metadata` - full discussion of the :paramref:`.Sequence.metadata` parameter. :param for_update: Indicates this :class:`.Sequence`, when associated with a :class:`_schema.Column`, should be invoked for UPDATE statements on that column's table, rather than for INSERT statements, when no value is otherwise present for that column in the statement. r4rN) rÌr„rrr Úoptionalrqr!rr#Ú_keyÚ _set_metadata)r=r rrrrrrr r!r r rrPrr‚r5s r"r„zSequence.__init__ s€õl ×!Ò! $°:Ð!Ñ>Ô>Ð>Ý× Ò Ø ØØØØØ!Ø!ØØØð !ñ ô ð õ   eÑ,Ô,ˆŒ Ø ˆŒ Ø •\Ð !Ð !Ø#'Ð 'ˆDŒK˜&˜&Ø Ð ! f n¸¼ nØ#+¤?Ð 2ˆDŒK˜&˜&å% f¨lÑ;Ô;ˆDŒKØ ˆŒ Ý" 4¨Ñ0Ô0ˆŒ Ø ð )Ø × Ò ˜xÑ (Ô (Ð (Ð (Ð (ð )ð )r$có—dSr!rrLs r"râzSequence.is_callableÐ ó€àˆur$có—dSr!rrLs r"räzSequence.is_clause_elementÔ rr$zsqlalchemy.sql.functions.funccó:—| ||j¬¦«S)z´Return a :class:`.next_value` function element which will render the appropriate increment function for this :class:`.Sequence` within any SQL expression. ©r§)Ú next_valuer§)r=Úfuncs r"rzSequence.next_valueØ s€ð�Š˜t¨$¬)ˆÑ4Ô4Ð4r$c󌕗tt|¦« |¦«| |j¦«dSr')r‘r;rùr`r·)r=rær s €r"rùzSequence._set_parentá s=ø€Ý �h˜ÑÔ×)Ò)¨&Ñ1Ô1Ð1Ø×Ò ¤Ñ0Ô0Ð0Ð0Ð0r$có:—| |j¦«dSr')rr)r=rær*s r"r·zSequence._set_tableå s€Ø ×Ò˜5œ>Ñ*Ô*Ð*Ð*Ð*r$có<—||_||jj|j<dSr')rÚ _sequencesrrøs r"rzSequence._set_metadataè s €Ø ˆŒ Ø.2ˆŒ Ô  ¤Ñ+Ð+Ð+r$có,—|jr |jjSdSr'rÞrLs r"r§z Sequence.bindì s€à Œ=ð Ø”=Ô%Ð %à�4r$cól—|€t|¦«}| tj||¬¦«dS)z&Creates this sequence in the database.Nrrrs r"r zSequence.createó s:€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô-¨tÀ ÐÑKÔKÐKÐKÐKr$cól—|€t|¦«}| tj||¬¦«dS)z&Drops this sequence from the database.Nrr rs r"r z Sequence.dropú s:€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô+¨T¸jÐÑIÔIÐIÐIÐIr$cóD—tjd|jjz¦«‚)NzœThis %s cannot be used directly as a column expression. Use func.next_value(sequence) to produce a 'next value' function that's usable as a column element.rÄrLs r"rÅzSequence._not_a_column_expr s+€ÝÔ%ð #ð&*¤^Ô%<ñ =ñ ô ð r$)NNNNNNNNNNFNNNF)NT)r]r^r_r`rarÚr„rrdrârärþrrùr·rrbr§r r rÅr#r$s@r"r;r;ý svø€€€€€ððð< €Nà€Kð ØØØØØØØØØØØØØØð#n)ðn)ðn)ðn)ð` ÔððñÔðð ÔððñÔðð€TÔÐ6Ñ7Ô7ð5ð5ñ8Ô7ð5ð1ð1ð1ð1ð1ð+ð+ð+ð3ð3ð3ðððñ„Xðð LðLðLðLðJðJðJðJð ð ð ð ð ð ð r$r;có>—eZdZdZdZdZdZd d„Zd„Zd„Z d„Z d„Z d S) r=aŸA marker for a transparent database-side default. Use :class:`.FetchedValue` when the database is configured to provide some automatic default for a column. E.g.:: Column('foo', Integer, FetchedValue()) Would indicate that some trigger or default generator will create a new value for the ``foo`` column during an INSERT. .. seealso:: :ref:`triggered_columns` TFcó—||_dSr'r4rÏs r"r„zFetchedValue.__init__# rÐr$cóF—||jkr|S| |¦«Sr')r5Ú_clonerÏs r"r>zFetchedValue._as_for_update& s&€Ø ˜œÒ (Ð (؈Kà—;’;˜zÑ*Ô*Ð *r$cóÆ—|j |j¦«}|j |j¦«|j dd¦«||_|S)Nræ)r rnrSÚupdaterrr5)r=r5Úns r"r%zFetchedValue._clone, sS€Ø ŒN× "Ò " 4¤>Ñ 2Ô 2ˆØ Œ ×Ò˜$œ-Ñ(Ô(Ð(Ø Œ �Š�x Ñ&Ô&Ð&Ø!ˆŒ ؈r$cóV—||_|jr||j_dS||j_dSr')rær5r,r+rås r"rùzFetchedValue._set_parent3 s3€ØˆŒ Ø Œ?ð .Ø*.ˆDŒKÔ 'Ð 'Ð 'à)-ˆDŒKÔ &Ð &Ð &r$có*—tj|¦«Sr'rJrLs r"rMzFetchedValue.__repr__: s€ÝÔ  Ñ&Ô&Ð&r$Nr|) r]r^r_r`rÛÚ reflectedÚ has_argumentr„r>r%rùrMrr$r"r=r= s€€€€€€ððð&ÐØ€IØ€Lð%ð%ð%ð%ð+ð+ð+ð ððð.ð.ð.ð'ð'ð'ð'ð'r$r=có.‡—eZdZdZdZdˆfd„ Zd„ZˆxZS)r?a>A DDL-specified DEFAULT column value. :class:`.DefaultClause` is a :class:`.FetchedValue` that also generates a "DEFAULT" clause when "CREATE TABLE" is emitted. :class:`.DefaultClause` is generated automatically whenever the ``server_default``, ``server_onupdate`` arguments of :class:`_schema.Column` are used. A :class:`.DefaultClause` can be passed positionally as well. For example, the following:: Column('foo', Integer, server_default="50") Is equivalent to:: Column('foo', Integer, DefaultClause("50")) TFcóÚ•—tj|tjdttfd¦«t t |¦« |¦«||_||_ dS)Nrrà) rÚassert_arg_typer6rrr‘r?r„ràr+)r=ràr5Ú _reflectedr s €r"r„zDefaultClause.__init__V s`ø€Ý ÔØ •$Ô# AÔ&­ µzÐBÀEñ ô ð õ �m˜TÑ"Ô"×+Ò+¨JÑ7Ô7Ð7؈ŒØ#ˆŒˆˆr$có(—d|j›d|j›d�S)NzDefaultClause(z , for_update=rý)ràr5rLs r"rMzDefaultClause.__repr__^ s€€Ø59´X°X°X¸t¼¸¸ÐOÐOr$)FF)r]r^r_r`r,r„rMr#r$s@r"r?r?> sdø€€€€€ððð*€Lð$ð$ð$ð$ð$ð$ðPðPðPðPðPðPðPr$r?z0.6zy:class:`.PassiveDefault` is deprecated and will be removed in a future release. Please refer to :class:`.DefaultClause`.có—eZdZdZd„ZdS)ÚPassiveDefaultz%A DDL-specified DEFAULT column value.có0—tj|g|¢Ri|¤ŽdSr')r?r„)r=ràr~s r"r„zPassiveDefault.__init__j s)€ÝÔ˜tÐ0 cÐ0Ð0Ð0¨RÐ0Ð0Ð0Ð0Ð0r$Nr rr$r"r3r3b s+€€€€€ð 0Ð/ð1ð1ð1ð1ð1r$r3cóL—eZdZdZdZ d d„Zed„¦«Zd„Zd„Z dS) Ú ConstraintzA table-level SQL constraint.r±NFc ó°—||_||_||_|r||_||_||_t j|¦«| |¦«dS)a÷Create a SQL constraint. :param name: Optional, the in-database name of this ``Constraint``. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY when issuing DDL for this constraint. :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 :param _create_rule: a callable which is passed the DDLCompiler object during compilation. Returns True or False to signal inline generation of this Constraint. The AddConstraint and DropConstraint DDL constructs provide DDLElement's more comprehensive "conditional DDL" approach that is passed a database connection when DDL is being issued. _create_rule is instead called during any CREATE TABLE compilation, where there may not be any transaction/connection in progress. However, it allows conditional compilation of the constraint even for backends which do not support addition of constraints through ALTER TABLE, which currently includes SQLite. _create_rule is used by some types to create constraints. Currently, its call signature is subject to change at any time. :param \**dialect_kw: Additional keyword arguments are dialect specific, and passed in the form ``_``. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. N) r r‡rˆrHÚ _create_rulerrr@r¾)r=r r‡rˆr8rHrr‹s r"r„zConstraint.__init__s sd€ðhˆŒ Ø$ˆŒØ"ˆŒØ ð ØˆDŒIØ(ˆÔØ&ˆÔÝ Ô Ñ%Ô%Ð%Ø ×%Ò% jÑ1Ô1Ð1Ð1Ð1r$có�— t|jt¦«r|jSn#t$rYnwxYwt jd¦«‚)NzdThis constraint is not bound to a table. Did you mean to call table.append_constraint(constraint) ?)r(r„rfr:rrurLs r"r*zConstraint.table± sc€ð ݘ$œ+¥uÑ-Ô-ð #Ø”{Ð"ð #øåð ð ð Ø ˆDð øøøåÔ%ð Añ ô ð s ‚ $¤ 1°1cóH—||_|j |¦«dSr')r„r”rà©r=r„s r"rùzConstraint._set_parent½ s&€ØˆŒ ØÔ×Ò˜tÑ$Ô$Ð$Ð$Ð$r$c ó—t¦«‚r')ÚNotImplementedError)r=r~s r"rTzConstraint.copyÁ s€Ý!Ñ#Ô#Ð#r$)NNNNNF) r]r^r_r`rar„rbr*rùrTrr$r"r6r6n s�€€€€€Ø'Ð'à!€NðØØØØ Øð<2ð<2ð<2ð<2ð|ð  ð  ñ„Xð  ð%ð%ð%ð$ð$ð$ð$ð$r$r6có —t|d¦«r| ¦«}t|t¦«st jd¦«‚|S)Nr€zschema.Column object expected)r7r€r(r)rr<)Úelements r"Ú_to_schema_columnr@Å sP€ÝˆwÐ,Ñ-Ô-ð/Ø×,Ò,Ñ.Ô.ˆÝ �g�vÑ &Ô &ðAÝÔÐ ?Ñ@Ô@Ð@Ø €Nr$cóΗ|€|St|d¦«r| ¦«}t|tjt fz¦«sd}t j||z¦«‚|S)Nr€z1Element %r is not a string name or column element)r7r€r(rr6rrr<)r?r€s r"Ú_to_schema_column_or_stringrBÍ sl€Ø€ØˆÝ �Ð.Ñ /Ô /ð/Ø×,Ò,Ñ.Ô.ˆÝ �g�tÔ0µMÐ3CÑCÑ DÔ Dð/ØAˆÝÔ  g¡ Ñ.Ô.Ð.Ø €Nr$cóH—eZdZdZ dZd„Zed„¦«Zdd„Zd„Z d„Z dS) ÚColumnCollectionMixinNFcóò—| dd¦«}| dd¦«|_t¦«|_d„|D¦«|_|r|jr| ¦«dSdSdS)NÚ _autoattachTrFcó,—g|]}t|¦«‘ŒSr)rBr¹s r"rºz2ColumnCollectionMixin.__init__..é s.€ð! ð! ð! Ø/0Õ '¨Ñ *Ô *ð! ð! ð! r$)rrrr rÙÚ_pending_colargsÚ _check_attach)r=rÙr~rFs r"r„zColumnCollectionMixin.__init__å s™€Ø—f’f˜]¨DÑ1Ô1ˆ ØŸFšF >°5Ñ9Ô9ˆÔÝ'Ñ)Ô)ˆŒ ð! ð! Ø4;ð! ñ! ô! ˆÔð ð !˜4Ô0ð !Ø × Ò Ñ Ô Ð Ð Ð ð !ð !ð !ð !r$c#óK—|D]€}d}d}t|d¦«r| ¦«}t|ttf¦«s|}n)g}t j|id|ji¦«|r|d}|�|n|}||||fV—Œ�dS)Nr€rær)r7r€r(rrrÚtraverser)r}rrÚstrnameræÚcolsÚ add_elements r"Ú"_extract_col_expression_collectionz8ColumnCollectionMixin._extract_col_expression_collectionï sÃèè€àð 5ð 5ˆD؈G؈FÝ�tÐ1Ñ2Ô2ð 1Ø×.Ò.Ñ0Ô0�å˜d¥]µJÐ$?Ñ@Ô@ð %à��à�ÝÔ! $¨¨X°t´{Ð,CÑDÔDÐDØð%Ø! !œW�FØ$*Ð$6˜&˜&¸GˆKؘ ¨Ð4Ð 4Ð 4Ð 4Ð 4ð 5ð 5r$cóò‡‡ ‡ —d„‰jD¦«}d„|D¦«}t|¦« |¦«Š ‰ rh|r Jd¦«‚td„‰jD¦«¦« |¦«}|s)ˆ ˆfd„}‰ ‰_‰ D]}| |¦«ŒdS|}d„|D¦«}t |¦«dkr)‰ | ¦«¦«dSt |¦«dkri‰jsd|dj Š ˆ fd „|dd…D¦«} | rAtj d d   d „| D¦«¦«›d ‰ j ›d�¦«‚dSdSdS)Ncó<—g|]}t|t¦«¯|‘ŒSr)r(r)r¹s r"rºz7ColumnCollectionMixin._check_attach.. s'€ÐNÐNÐN˜!½ À1ÅfÑ8MÔ8MÐN�AÐNÐNÐNr$cóF—g|]}t|jt¦«¯|‘ŒSr)r(r*rfr¹s r"rºz7ColumnCollectionMixin._check_attach.. s)€ÐJÐJÐJ˜a­z¸!¼'Å5Ñ/IÔ/IÐJ˜ÐJÐJÐJr$z#Should not reach here on event callc3óK—|]}|®|V—Œ dSr'rr¹s r"r´z6ColumnCollectionMixin._check_attach.. s+èè€ð"ð"ذA°M�°M°M°M°Mð"ð"r$có”•—t|t¦«r/‰ |¦«‰s‰ d¬¦«dSdSdS)NT)rž)r(rfÚdiscardrI)rær*Ú cols_wo_tabler=s €€r"Ú _col_attachedz:ColumnCollectionMixin._check_attach.._col_attached sdø€õ" %­Ñ/Ô/ð9Ø%×-Ò-¨fÑ5Ô5Ð5Ø,ð9Ø ×.Ò.°4Ð.Ñ8Ô8Ð8Ð8Ð8ð9ð9ð9ð9r$có—h|] }|j’Œ Sr©r*r¹s r"ú z6ColumnCollectionMixin._check_attach..$ s€Ð+Ð+Ð+˜a�!”'Ð+Ð+Ð+r$rrcó&•—g|] }|j‰u¯ |‘ŒSrrY)r²r,r*s €r"rºz7ColumnCollectionMixin._check_attach..) s%ø€ÐEÐEÐE˜A°´¸uÐ0DÐ0D�aÐ0DÐ0DÐ0Dr$z Column(s) rÊc3ó K—|] }d|zV—Œ dS©z'%s'Nrr¹s r"r´z6ColumnCollectionMixin._check_attach... s&èè€Ð!=Ð!=° &¨1¡*Ð!=Ð!=Ð!=Ð!=Ð!=Ð!=r$z are not part of table 'ú'.)rHr’Ú differenceÚ_cols_wo_tabler`rŸr9rrÚ_allow_multiple_tablesr*rr<rØrÛ) r=ržÚcol_objsÚ cols_w_tableÚhas_string_colsrWr-rÙrsÚothersrVr*s ` @@r"rIz#ColumnCollectionMixin._check_attach süøøø€ØNÐN˜tÔ4ÐNÑNÔNˆàJÐJ 8ÐJÑJÔJˆ å˜H™ œ ×0Ò0°Ñ>Ô>ˆ Ø ð ðÐ AÐ AÐAÑ AÔ A�7õ"ð"ð"ØÔ0ð"ñ"ô"ñôçŠj˜Ñ"Ô"ð ð#ð ð9ð9ð9ð9ð9ð9ð'4�Ô#Ø(ð8ð8�CØ×(Ò(¨Ñ7Ô7Ð7Ð7Ø�àˆà+Ð+ 7Ð+Ñ+Ô+ˆÝ ˆv‰;Œ;˜!Ò Ð Ø × *Ò *¨6¯:ª:©<¬<Ñ 8Ô 8Ð 8Ð 8Ð 8Ý �‰[Œ[˜1Š_ˆ_ TÔ%@ˆ_ؘA”JÔ$ˆEØEÐEÐEÐE ¨¨¨¤ÐEÑEÔEˆFØð ÝÔ'Ð'🠚 Ð!=Ð!=°fÐ!=Ñ!=Ô!=Ñ=Ô=Ð=Ð=ØÔ)Ð)Ð)ðñôðð ˆ_ˆ_ˆ_ð ð r$có*‡—ˆfd„|jD¦«S)Ncób•—g|]+}t|tj¦«r ‰j|n|‘Œ,Sr)r(rr6r,)r²r-r*s €r"rºz:ColumnCollectionMixin._col_expressions..4 sEø€ð ð ð àõ' s­DÔ,=Ñ>Ô>Ð GˆEŒG�CŒLˆLÀCð ð ð r$)rHrás `r"Ú_col_expressionsz&ColumnCollectionMixin._col_expressions3 s1ø€ð ð ð ð àÔ,ð ñ ô ð r$cón—| |¦«D]}|�|j |¦«ŒdSr')rhrÙrà)r=r*r-s r"rùz!ColumnCollectionMixin._set_parent9 sE€Ø×(Ò(¨Ñ/Ô/ð &ð &ˆC؈ؔ × Ò  Ñ%Ô%Ð%øð &ð &r$r|) r]r^r_rÙrar„Ú classmethodrOrIrhrùrr$r"rDrDØ sƒ€€€€€à€Gðð#Ðð!ð!ð!ðð5ð5ñ„[ð5ð$/ð/ð/ð/ðb ð ð ð &ð&ð&ð&ð&r$rDcóD—eZdZdZd„ZdZ d„Zd„Zd d„Zd„Z d„Z d „Z dS) ÚColumnCollectionConstraintz-A constraint that proxies a ColumnCollection.có®—| dd¦«}| dd¦«}tj|fi|¤Žtj|g|¢R||dœŽdS)aZ :param \*columns: A sequence of column names or Column objects. :param name: Optional, the in-database name of this constraint. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY when issuing DDL for this constraint. :param \**kw: other keyword arguments including dialect-specific arguments are propagated to the :class:`.Constraint` superclass. rFTrF)rFrN)rrr6r„rD)r=rÙr~rFrs r"r„z#ColumnCollectionConstraint.__init__B s�€ð(—f’f˜]¨DÑ1Ô1ˆ Ø—v’v˜n¨eÑ4Ô4ˆ ÝÔ˜DÐ'Ð' BÐ'Ð'Ð'ÝÔ&Ø ð Øð ð Ø(3À,ð ð ð ð ð ð r$Ncór—t ||¦«t ||¦«dSr')r6rùrDrás r"rùz&ColumnCollectionConstraint._set_parentc s4€Ý×Ò˜t UÑ+Ô+Ð+Ý×)Ò)¨$°Ñ6Ô6Ð6Ð6Ð6r$có—||jvSr')rÙ)r=rÏs r"Ú __contains__z'ColumnCollectionConstraint.__contains__g s€Ø�D”LÐ Ð r$c 󇇗i}‰jD]9}‰j|j}| ¦«D]\}}|||dz|z<ŒŒ:‰jˆˆfd„‰jD¦«‰j‰j‰jdœ|¤Ž}‰ |¦«S)Nrócó<•—g|]}t|‰j‰¦«‘ŒSr)r3r„)r²rr=r/s €€r"rºz3ColumnCollectionConstraint.copy..{ s7ø€ðððàõ!  t¤{°LÑAÔAðððr$)r r‡rˆ) rfrgrhr rÙr r‡rˆrW) r=r/r~Úconstraint_kwargsrlrfrmrnr,s `` r"rTzColumnCollectionConstraint.copyj sñøø€àÐØ Ô0ð )ð )ˆLØ"Ô2°<Ô@ÔNˆOð!×&Ò&Ñ(Ô(ð )ð )ñØ"Ø$ð)ð"Ø  3Ñ&Ð);Ñ;ñðð  )ð ˆDŒNðððððà œLðñôð”Ø”Ø”nð ð ð ð ð ˆð×%Ò% aÑ(Ô(Ð(r$có6—|j |¦«S)zïReturn True if this constraint contains the given column. Note that this object also contains an attribute ``.columns`` which is a :class:`_expression.ColumnCollection` of :class:`_schema.Column` objects. )rÙÚcontains_column©r=r-s r"ruz*ColumnCollectionConstraint.contains_columnƒ s€ðŒ|×+Ò+¨CÑ0Ô0Ð0r$cóB‡—|jjŠˆfd„‰jD¦«S)Nc3ó(•K—|] }‰|V—Œ dSr'r)r²r+Ú ordered_dicts €r"r´z6ColumnCollectionConstraint.__iter__..“ s(øèè€Ð@Ð@ c� ˜SÔ!Ð@Ð@Ð@Ð@Ð@Ð@r$)rÙÚ_dataÚ_list)r=rys @r"Ú__iter__z#ColumnCollectionConstraint.__iter__Ž s,ø€ð”|Ô)ˆ Ø@Ð@Ð@Ð@¨\Ô-?Ð@Ñ@Ô@Ð@r$có4—t|jj¦«Sr')rŸrÙrzrLs r"Ú__len__z"ColumnCollectionConstraint.__len__• s€Ý�4”<Ô%Ñ&Ô&Ð&r$r') r]r^r_r`r„rÙrùrprTrur|r~rr$r"rlrl? s—€€€€€Ø7Ð7ð ð ð ð6€Gðð 7ð7ð7ð!ð!ð!ð)ð)ð)ð)ð2 1ð 1ð 1ðAðAðAð'ð'ð'ð'ð'r$rlc󂇗eZdZdZdZeddd¦« d ˆfd„ ¦«Zd „Zee¦«Zd d „Z ˆxZ S) ÚCheckConstraintzlA table- or column-level CHECK constraint. Can be included in the definition of a Table or Column. TÚsqltextz:class:`.CheckConstraint`z$:paramref:`.CheckConstraint.sqltext`NFc óþ•—t|d¬¦«|_g} tj|jid| ji¦«t t |¦«j| |||||| |dœ| ¤Ž|�| |¦«dSdS)aÏConstruct a CHECK constraint. :param sqltext: A string containing the constraint definition, which will be used verbatim, or a SQL expression construct. If given as a string, the object is converted to a :func:`_expression.text` object. If the textual string includes a colon character, escape this using a backslash:: CheckConstraint(r"foo ~ E'a(?\:b|c)d") :param name: Optional, the in-database name of the constraint. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY when issuing DDL for this constraint. :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 T©Úallow_coercion_to_textræ)r r‡rˆr8rHrrFN) rr�rrKrr‘r€r„r9) r=r�r r‡rˆr*rHr8rFrr~rÙr s €r"r„zCheckConstraint.__init__¡ s³ø€õ^(¨ÈÐMÑMÔMˆŒ àˆÝÔ˜$œ,¨¨X°w´~Ð,FÑGÔGÐGà-��o˜tÑ$Ô$Ô-ððØ!ØØ%ØØ#Ø#ð ð ðð ð ð ð Ð Ø × *Ò *¨5Ñ 1Ô 1Ð 1Ð 1Ð 1ð Ð r$có>—t|jt¦«rdSdS)NÚcheck_constraintÚcolumn_check_constraint)r(r„rfrLs r"razCheckConstraint.__visit_name__ã s"€Ý �d”k¥5Ñ )Ô )ð -Ø%Ð%à,Ð,r$c óÖ—|�t|j|j|¦«}n|j}t||j|j|j|j|d|j¬¦«}|  |¦«S)NF)r rˆr‡r8r*rFr) r3r�r*r€r rˆr‡r8rrW)r=r/r~r�r,s r"rTzCheckConstraint.copyë sv€Ø Ð #õ' t¤|°T´ZÀÑNÔNˆGˆGà”lˆGÝ Ø Ø”Ø”nØ”ØÔ*ØØØÔ(ð ñ ô ˆð×%Ò% aÑ(Ô(Ð(r$)NNNNNNTFr') r]r^r_r`rar r„rarbrTr#r$s@r"r€r€™ sÁø€€€€€ððð "ÐàÐØØ#Ø.ñôðØØØØ ØØØð;2ð;2ð;2ð;2ð;2ñ ôð ;2ðz-ð-ð-ð �X˜nÑ-Ô-€Nð)ð)ð)ð)ð)ð)ð)ð)r$r€cóÆ—eZdZdZdZ dd„Zd„ZdZ dZ e d„¦«Z e d„¦«Z e d „¦«Z d „Z e d „¦«Ze d „¦«Zd „Zdd„ZdS)ra¾A table-level FOREIGN KEY constraint. Defines a single column or composite FOREIGN KEY ... REFERENCES constraint. For a no-frills, single column foreign key, adding a :class:`_schema.ForeignKey` to the definition of a :class:`_schema.Column` is a shorthand equivalent for an unnamed, single column :class:`_schema.ForeignKeyConstraint`. Examples of foreign key configuration are in :ref:`metadata_foreignkeys`. Úforeign_key_constraintNFc  ó2‡—tj‰f|||| dœ| ¤Ž|‰_|‰_| ‰_|‰_| ‰_tt|¦«¦«t|¦«krUtt|¦«¦«t|¦«krtj d¦«‚tj d¦«‚ˆfd„|D¦«‰_ tj‰g|¢RŽ| �2t‰d¦«r | ‰jusJ‚‰ | ¦«dSdS)a- Construct a composite-capable FOREIGN KEY. :param columns: A sequence of local column names. The named columns must be defined and present in the parent Table. The names should match the ``key`` given to each column (defaults to the name) unless ``link_to_name`` is True. :param refcolumns: A sequence of foreign column names or Column objects. The columns must all be located within the same Table. :param name: Optional, the in-database name of the key. :param onupdate: Optional string. If set, emit ON UPDATE when issuing DDL for this constraint. Typical values include CASCADE, DELETE and RESTRICT. :param ondelete: Optional string. If set, emit ON DELETE when issuing DDL for this constraint. Typical values include CASCADE, DELETE and RESTRICT. :param deferrable: Optional bool. If set, emit DEFERRABLE or NOT DEFERRABLE when issuing DDL for this constraint. :param initially: Optional string. If set, emit INITIALLY when issuing DDL for this constraint. :param link_to_name: if True, the string name given in ``column`` is the rendered name of the referenced column, not its locally assigned ``key``. :param use_alter: If True, do not emit the DDL for this constraint as part of the CREATE TABLE definition. Instead, generate it via an ALTER TABLE statement issued after the full collection of tables have been created, and drop it via an ALTER TABLE statement before the full collection of tables are dropped. The use of :paramref:`_schema.ForeignKeyConstraint.use_alter` is particularly geared towards the case where two or more tables are established within a mutually-dependent foreign key constraint relationship; however, the :meth:`_schema.MetaData.create_all` and :meth:`_schema.MetaData.drop_all` methods will perform this resolution automatically, so the flag is normally not needed. .. versionchanged:: 1.0.0 Automatic resolution of foreign key cycles has been added, removing the need to use the :paramref:`_schema.ForeignKeyConstraint.use_alter` in typical use cases. .. seealso:: :ref:`use_alter` :param match: Optional string. If set, emit MATCH when issuing DDL for this constraint. Typical values include SIMPLE, PARTIAL and FULL. :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 :param \**dialect_kw: Additional keyword arguments are dialect specific, and passed in the form ``_``. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. .. versionadded:: 0.9.2 )r r‡rˆrHzOForeignKeyConstraint with duplicate source column references are not supported.z_ForeignKeyConstraint number of constrained columns must match the number of referenced columns.c󘕗g|]F}t|f‰‰j‰j‰j‰j‰j‰j‰j‰jdœ ‰j ¤Ž‘ŒGS)) rqr r/r†r…r\r‰r‡rˆ) rrr r/r†r…r\r‰r‡rˆÚdialect_kwargs)r²Úrefcolr=s €r"rºz1ForeignKeyConstraint.__init__..Š s{ø€ð ð ð ðõ Øð à Ø”Y؜؜؜.Ø!Ô.Ø”jØœ?Øœ.ð ð ðÔ%ð ð ð ð ð r$Nr„)r6r„r/r†r\r…r‰rŸr’rr<ÚelementsrDr7r„r9)r=rÙÚ refcolumnsr r/r†r‡rˆr…r\r‰r*rHr‹s` r"r„zForeignKeyConstraint.__init__ slø€õn ÔØ ð àØ!ØØð  ð ð ð  ð ð ð!ˆŒ Ø ˆŒ Ø(ˆÔØ"ˆŒØˆŒ å �s�7‰|Œ|Ñ Ô ¥ J¡¤Ò /Ð /Ý•3�w‘<”<Ñ Ô ¥C¨¡L¤LÒ0Ð0åÔ'ð4ñôðõÔ'ð*ñôðð ð ð ð ð%ð ñ ô ˆŒ õ" Ô& tÐ6¨gÐ6Ð6Ð6Ð6Ø Ð Ý�t˜XÑ&Ô&ð ,Ø ¤ Ð+Ð+Ð+Ð+Ø × *Ò *¨5Ñ 1Ô 1Ð 1Ð 1Ð 1ð Ð r$cón—|j |¦«|j |¦«dSr')rÙràr�rrHs r"r¾z$ForeignKeyConstraint._append_element¡ s4€Ø Œ ×Ò˜Ñ Ô Ð Ø Œ ×Ò˜RÑ Ô Ð Ð Ð r$cóZ—tjt|j|j¦«¦«Sr')rÚ OrderedDictÚzipÚ column_keysr�rLs r"Ú _elementszForeignKeyConstraint._elements¶ s$€õÔ¥ DÔ$4°d´mÑ DÔ DÑEÔEÐEr$có*—|jD] }|jcSdSr')r�r)r=Úelems r"rz%ForeignKeyConstraint._referred_schema» s'€à”Mð ð ˆDØÔ(Ð (Ð (Ð (à�4r$có0—|jdjjS)alThe :class:`_schema.Table` object to which this :class:`_schema.ForeignKeyConstraint` references. This is a dynamically calculated attribute which may not be available if the constraint and/or parent table is not yet associated with a metadata collection that contains the referred table. .. versionadded:: 1.0.0 r)r�rær*rLs r"Úreferred_tablez#ForeignKeyConstraint.referred_table s€ðŒ}˜QÔÔ&Ô,Ð,r$c óü—td„|jD¦«¦«}d|vrWt|¦«dkrFt|¦«dd…\}}t jd|j›d|j›d|›d|›�¦«‚dSdS) Ncó6—g|]}| ¦«‘ŒSr)r—)r²r˜s r"rºz=ForeignKeyConstraint._validate_dest_table..Ñ s"€ÐFÐFÐF°˜$Ÿ/š/Ñ+Ô+ÐFÐFÐFr$rrrzForeignKeyConstraint on ú(z$) refers to multiple remote tables: ú and )r’r�rŸr­rr<r™Ú_col_description)r=r*Ú table_keysÚelem0Úelem1s r"r¹z)ForeignKeyConstraint._validate_dest_tableÐ s¡€ÝÐFÐF¸¼ ÐFÑFÔFÑGÔGˆ Ø �zÐ !Ð !¥c¨*¡o¤o¸Ò&9Ð&9Ý! *Ñ-Ô-¨a°¨cÔ2‰LˆE�5ÝÔ#Ð#ð”>�>�> 4Ô#8Ð#8Ð#8¸%¸%¸%ÀÀðHñôð ð "Ð !Ð&9Ð&9r$cóv—t|d¦«r|j ¦«Sd„|jD¦«S)a®Return a list of string keys representing the local columns in this :class:`_schema.ForeignKeyConstraint`. This list is either the original string arguments sent to the constructor of the :class:`_schema.ForeignKeyConstraint`, or if the constraint has been initialized with :class:`_schema.Column` objects, is the string ``.key`` of each element. .. versionadded:: 1.0.0 r„cód—g|]-}t|t¦«r|jnt|¦«‘Œ.Sr)r(rr+Ústr)r²r-s r"rºz4ForeignKeyConstraint.column_keys..ê sC€ðððàõ& c­=Ñ9Ô9ÐG�”�½sÀ3¹x¼xðððr$)r7rÙÚkeysrHrLs r"r•z ForeignKeyConstraint.column_keysÚ sN€õ �4˜Ñ "Ô "ð Ø”<×$Ò$Ñ&Ô&Ð &ððàÔ0ðñôð r$có6—d |j¦«S)NrÊ)rØr•rLs r"rŸz%ForeignKeyConstraint._col_descriptionï s€à�yŠy˜Ô)Ñ*Ô*Ð*r$c óè—t ||¦« t ||¦«nV#t$rI}t jt jd|j›d|j d›d�¦«|¬¦«Yd}~nd}~wwxYwt|j |j ¦«D]3\}}t|d¦«r |j|ur| |¦«Œ4| |¦«dS)Nz,Can't create ForeignKeyConstraint on table 'z': no column named 'rz ' is present.rtr„)r6rùrlÚKeyErrorrr;rr<rÛr>r”rÙr�r7r„r9r¹)r=r*Úker-rIs r"rùz ForeignKeyConstraint._set_parentó s/€Ý×Ò˜t UÑ+Ô+Ð+ð Ý &× 2Ò 2°4¸Ñ ?Ô ?Ð ?Ð ?øÝð ð ð Ý ŒKÝÔ!Ð!ð16Ô0AÐ0AÐ0AÀ2Ä7È1Ä:À:À:ðOñôð ð  ñ ô ð ð ð ð ð ð øøøøð øøøõ˜4œ<¨¬Ñ7Ô7ð 2ð 2‰GˆC�ݘ2˜xÑ(Ô(ð 2¨B¬I¸SÐ,@Ð,@Ø×,Ò,¨SÑ1Ô1Ð1øà ×!Ò! %Ñ(Ô(Ð(Ð(Ð(s�9¹ B Á?BÂB c ó^‡‡—td„|jD¦«ˆˆfd„|jD¦«|j|j|j|j|j|j|j|j ¬¦ « }t|j|j¦«D]\}}|  |¦«Œ|  |¦«S)Ncó&—g|]}|jj‘ŒSr)r„r+rÎs r"rºz-ForeignKeyConstraint.copy.. s€Ð 1Ð 1Ð 1˜aˆQŒXŒ\Ð 1Ð 1Ð 1r$cóž•—g|]I}| ‰‰�.| ¦«|jjjkr‰jnd¬¦«‘ŒJS)N)r!r‘)r�r—r„r*r+r )r²rÏr!r/s €€r"rºz-ForeignKeyConstraint.copy.. sqø€ð ð ð ðð—’Ø!à#Ð/ØŸ š ™œ¨!¬(¬.Ô*<Ò<Ð<ð ,Ô0Ð0ðð ñôð ð ð r$)r r/r†r…r‡rˆr\r‰) rr�r r/r†r…r‡rˆr\r‰r”rW)r=r!r/r~r³Úself_fkÚother_fks `` r"rTzForeignKeyConstraint.copysÔøø€Ý"Ø 1Ð 1 4¤=Ð 1Ñ 1Ô 1ð ð ð ð ð ðœð ñ ô ð”Ø”]Ø”]Ø”nؔؔnØÔ*Ø”*ð' ñ ô ˆõ*"% T¤]°C´LÑ!AÔ!Að 0ð 0Ñ ˆG�XØ × %Ò % hÑ /Ô /Ð /Ð /Ø×%Ò% cÑ*Ô*Ð*r$) NNNNNFFNNNr¿)r]r^r_r`rar„r¾rÙr�rbr–rršr¹r•rŸrùrTrr$r"rr sA€€€€€ð ð ð.€Nð ØØØØØØØØØ ðO2ðO2ðO2ðO2ðb!ð!ð!ð€Gðð €HðððFðFñ„XðFðððñ„Xðð ð -ð -ñ„Xð -ððððððñ„Xðð(ð+ð+ñ„Xð+ð)ð)ð)ð*+ð+ð+ð+ð+ð+r$rcór‡—eZdZdZdZˆfd„Zˆfd„Zd„Zd„Ze d„¦«Z e j d„¦«Z ˆxZS) r–aß A table-level PRIMARY KEY constraint. The :class:`.PrimaryKeyConstraint` object is present automatically on any :class:`_schema.Table` object; it is assigned a set of :class:`_schema.Column` objects corresponding to those marked with the :paramref:`_schema.Column.primary_key` flag:: >>> my_table = Table('mytable', metadata, ... Column('id', Integer, primary_key=True), ... Column('version_id', Integer, primary_key=True), ... Column('data', String(50)) ... ) >>> my_table.primary_key PrimaryKeyConstraint( Column('id', Integer(), table=, primary_key=True, nullable=False), Column('version_id', Integer(), table=, primary_key=True, nullable=False) ) The primary key of a :class:`_schema.Table` can also be specified by using a :class:`.PrimaryKeyConstraint` object explicitly; in this mode of usage, the "name" of the constraint can also be specified, as well as other options which may be recognized by dialects:: my_table = Table('mytable', metadata, Column('id', Integer), Column('version_id', Integer), Column('data', String(50)), PrimaryKeyConstraint('id', 'version_id', name='mytable_pk') ) The two styles of column-specification should generally not be mixed. An warning is emitted if the columns present in the :class:`.PrimaryKeyConstraint` don't match the columns that were marked as ``primary_key=True``, if both are present; in this case, the columns are taken strictly from the :class:`.PrimaryKeyConstraint` declaration, and those columns otherwise marked as ``primary_key=True`` are ignored. This behavior is intended to be backwards compatible with previous behavior. .. versionchanged:: 0.9.2 Using a mixture of columns within a :class:`.PrimaryKeyConstraint` in addition to columns marked as ``primary_key=True`` now emits a warning if the lists don't match. The ultimate behavior of ignoring those columns marked with the flag only is currently maintained for backwards compatibility; this warning may raise an exception in a future release. For the use case where specific options are to be specified on the :class:`.PrimaryKeyConstraint`, but the usual style of using ``primary_key=True`` flags is still desirable, an empty :class:`.PrimaryKeyConstraint` may be specified, which will take on the primary key column collection from the :class:`_schema.Table` based on the flags:: my_table = Table('mytable', metadata, Column('id', Integer, primary_key=True), Column('version_id', Integer, primary_key=True), Column('data', String(50)), PrimaryKeyConstraint(name='mytable_pk', mssql_clustered=True) ) .. versionadded:: 0.9.2 an empty :class:`.PrimaryKeyConstraint` may now be specified for the purposes of establishing keyword arguments with the constraint, independently of the specification of "primary key" columns within the :class:`_schema.Table` itself; columns marked as ``primary_key=True`` will be gathered into the empty constraint's column collection. Úprimary_key_constraintcó~•—| dd¦«|_tt|¦«j|i|¤ŽdS)Nr†F)rrr†r‘r–r„)r=rÙr~r s €r"r„zPrimaryKeyConstraint.__init__osCø€Ø#%§6¢6Ð*?ÀÑ#GÔ#GˆÔ Ø2�Õ" DÑ)Ô)Ô2°GÐB¸rÐBÐBÐBÐBÐBr$c ó •—tt|¦« |¦«|j|ur@|j |j¦«||_|j |¦«d„|jD¦«}|jrÇ|rÅt|¦«t|j  ¦«¦«krŽtj d|j ›dd d„|D¦«¦«›dd d„|jD¦«¦«›dd d „|jD¦«¦«›d � ¦«g|dd…<|jD]}d |_d |_Œ|j |¦«dS) Ncó —g|] }|j¯ |‘Œ Sr)rÆr¹s r"rºz4PrimaryKeyConstraint._set_parent..{s€Ð9Ð9Ð9˜1¨1¬=Ð9�QÐ9Ð9Ð9r$zTable 'z' specifies columns rÊc3ó*K—|]}d|jzV—ŒdSr]r¸r¹s r"r´z3PrimaryKeyConstraint._set_parent..ˆs(èè€ÐAÐA°!˜f q¤v™oÐAÐAÐAÐAÐAÐAr$z= as primary_key=True, not matching locally specified columns c3ó*K—|]}d|jzV—ŒdSr]r¸r¹s r"r´z3PrimaryKeyConstraint._set_parent..‰ó(èè€ÐDÐD°!˜f q¤v™oÐDÐDÐDÐDÐDÐDr$z-; setting the current primary key columns to c3ó*K—|]}d|jzV—ŒdSr]r¸r¹s r"r´z3PrimaryKeyConstraint._set_parent..Šr·r$z:. This warning may become an exception in a future releaseTF)r‘r–rùrÆr”rUràr,rÙr’Úvaluesrrr rØr)Úextend)r=r*Ú table_pksr,r s €r"rùz PrimaryKeyConstraint._set_parentss›ø€Ý Õ" DÑ)Ô)×5Ò5°eÑ<Ô<Ð<à Ô  DÐ (Ð (Ø Ô × %Ò % eÔ&7Ñ 8Ô 8Ð 8Ø $ˆEÔ Ø Ô × !Ò ! $Ñ 'Ô 'Ð 'à9Ð9 ¤Ð9Ñ9Ô9ˆ à ŒLð àð õ�I‘”¥# d¤l×&9Ò&9Ñ&;Ô&;Ñ"<Ô"<Ò<Ð<å ŒIˆIð ”J�J�JØ—I’IÐAÐA°yÐAÑAÔAÑAÔAÐAÐAØ—I’IÐDÐD°t´|ÐDÑDÔDÑDÔDÐDÐDØ—I’IÐDÐD°t´|ÐDÑDÔDÑDÔDÐDÐDð ñ ô ð ðˆI�a�a�a‰Là”ð ð ˆAØ ˆAŒM؈AŒJˆJØ Œ ×Ò˜IÑ&Ô&Ð&Ð&Ð&r$cóÄ—|D] }d|_Œ |j |¦«tj |¦«| |j¦«dS)aKrepopulate this :class:`.PrimaryKeyConstraint` given a set of columns. Existing columns in the table that are marked as primary_key=True are maintained. Also fires a new event. This is basically like putting a whole new :class:`.PrimaryKeyConstraint` object on the parent :class:`_schema.Table` object without actually replacing the object. The ordering of the given list of columns is also maintained; these columns will be appended to the list of columns after any which are already present. TN)rÆrÙrºr–rÇÚ_resetr9r*)r=rÙr-s r"Ú_reloadzPrimaryKeyConstraint._reload”se€ð*ð #ð #ˆCØ"ˆCŒOˆOà Œ ×Ò˜GÑ$Ô$Ð$åÔ2×9Ò9¸$Ñ?Ô?Ð?Ø ×&Ò& t¤zÑ2Ô2Ð2Ð2Ð2r$có®—tj |¦«|j |¦«|j ||¦«dSr')r–rÇr½rÙr0rUÚ'_sa_event_column_added_to_pk_constraintrvs r"rVzPrimaryKeyConstraint._replace±sM€ÝÔ2×9Ò9¸$Ñ?Ô?Ð?Ø Œ ×Ò˜SÑ!Ô!Ð!à Œ ×=Ò=¸dÀCÑHÔHÐHÐHÐHr$cól‡—|jЉ�‰gˆfd„|jD¦«zSt|j¦«S)Ncó•—g|]}|‰u¯|‘Œ Srr)r²r,Úautoincs €r"rºz>PrimaryKeyConstraint.columns_autoinc_first..¼s#ø€ÐLÐLÐL a¸1ÀGÐ;KÐ;K Ð;KÐ;KÐ;Kr$)rÇrÙrü)r=rÃs @r"Úcolumns_autoinc_firstz*PrimaryKeyConstraint.columns_autoinc_first·sEø€àÔ,ˆà Ð Ø�9ÐLÐLÐLÐL¨4¬<ÐLÑLÔLÑLÐ L嘜 Ñ%Ô%Ð %r$cóh—d„}t|j¦«dkrLt|j¦«d}|jdur||d¦«|S|jdvr||d¦«r|SdSdSd}|jD]@}|jdur5||d¦«|�%t jd|j›d|j›d �¦«‚|}ŒA|S) NcóL—|jj�)t|jjtjj¦«s$|r t jd|j›d|›d�¦«‚dSt|jtd¦«tf¦«s|sdS|j �|sdS|j r |j dvrdSdS)Nz Column type z on column 'z+' is not compatible with autoincrement=TrueF)TÚ ignore_fkT) r9Ú_type_affinityÚ issubclassrÚ INTEGERTYPErr<r(r*r;r+r—r0)r-Ú autoinc_trues r"Ú_validate_autoinczEPrimaryKeyConstraint._autoincrement_column.._validate_autoincÂs׀،xÔ&Ð.µjØ”Ô'­Ô)=Ô)Lñ7ô7Ð.ð ð!ÝÔ+Ð+à@CÄÀÀÈ#È#È#ðOñôðð !˜5å˜sœ{­T°$©Z¬Z½Ð,BÑCÔCð à$ð ð�uØÔ#Ð/¸ Ð/Ø�uØÔ!ð  cÔ&7ð@ð'ð'ð�uØ�4r$rrT)r1rÇFz=Only one Column may be marked autoincrement=True, found both ržr)rŸrÙrür0rr<r )r=rÌr-rÃs r"rÇz*PrimaryKeyConstraint._autoincrement_columnÀs%€ð ð ð õ2 ˆtŒ|Ñ Ô  Ò !Ð !Ý�t”|Ñ$Ô$ QÔ'ˆCàÔ  DÐ(Ð(Ø!Ð! # tÑ,Ô,Ð,Ø� àÔ!ðððð &Ð% c¨5Ñ1Ô1ð ð� ðððððˆGØ”|ð &ð &�ØÔ$¨Ð,Ð,Ø%Ð% c¨4Ñ0Ô0Ð0ØÐ*Ý!Ô/Ð/ð #œx˜x˜x¨¬¨¨ð7ñôðð #&˜øàˆNr$)r]r^r_r`rar„rùr¾rVrbrÄrrdrÇr#r$s@r"r–r–#sÆø€€€€€ðGðGðR.€NðCðCðCðCðCð'ð'ð'ð'ð'ðB3ð3ð3ð:IðIðIð ð&ð&ñ„Xð&ð Ôð8ð8ñÔð8ð8ð8ð8ð8r$r–có—eZdZdZdZdS)rWaA table-level UNIQUE constraint. Defines a single column or composite UNIQUE constraint. For a no-frills, single column constraint, adding ``unique=True`` to the ``Column`` definition is a shorthand equivalent for an unnamed, single column UniqueConstraint. Úunique_constraintN)r]r^r_r`rarr$r"rWrWüs€€€€€ððð)€N€N€Nr$rWcóN—eZdZdZdZd„Zd„Zed„¦«Zd d„Z d d„Z d „Z dS) ra¬ A table-level INDEX. Defines a composite (one or more column) INDEX. E.g.:: sometable = Table("sometable", metadata, Column("name", String(50)), Column("address", String(100)) ) Index("some_index", sometable.c.name) For a no-frills, single column index, adding :class:`_schema.Column` also supports ``index=True``:: sometable = Table("sometable", metadata, Column("name", String(50), index=True) ) For a composite index, multiple columns can be specified:: Index("some_index", sometable.c.name, sometable.c.address) Functional indexes are supported as well, typically by using the :data:`.func` construct in conjunction with table-bound :class:`_schema.Column` objects:: Index("some_index", func.lower(sometable.c.name)) An :class:`.Index` can also be manually associated with a :class:`_schema.Table`, either through inline declaration or using :meth:`_schema.Table.append_constraint`. When this approach is used, the names of the indexed columns can be specified as strings:: Table("sometable", metadata, Column("name", String(50)), Column("address", String(100)), Index("some_index", "name", "address") ) To support functional or expression-based indexes in this form, the :func:`_expression.text` construct may be used:: from sqlalchemy import text Table("sometable", metadata, Column("name", String(50)), Column("address", String(100)), Index("some_index", text("lower(name)")) ) .. versionadded:: 0.9.5 the :func:`_expression.text` construct may be used to specify :class:`.Index` expressions, provided the :class:`.Index` is explicitly associated with the :class:`_schema.Table`. .. seealso:: :ref:`schema_indexes` - General information on :class:`.Index`. :ref:`postgresql_indexes` - PostgreSQL-specific options available for the :class:`.Index` construct. :ref:`mysql_indexes` - MySQL-specific options available for the :class:`.Index` construct. :ref:`mssql_indexes` - MSSQL-specific options available for the :class:`.Index` construct. rcód—dx|_}g}g}| |¦«D]1\}}} } | | ¦«| |¦«Œ2||_t || dd¦«¦«|_| dd¦«|_| dd¦«} d|vr| d¦«|_d|vr| d¦«}|  |¦«tj |g|¢Rd| iŽ|�|  |¦«dSdS)a“Construct an index object. :param name: The name of the index :param \*expressions: Column expressions to include in the index. The expressions are normally instances of :class:`_schema.Column`, but may also be arbitrary SQL expressions which ultimately refer to a :class:`_schema.Column`. :param unique=False: Keyword only argument; if True, create a unique index. :param quote=None: Keyword only argument; whether to apply quoting to the name of the index. Works in the same manner as that of :paramref:`_schema.Column.quote`. :param info=None: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 :param \**kw: Additional keyword arguments not mentioned above are dialect specific, and passed in the form ``_``. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. NrPrFrrHr) r*rOrrrrrr rrHr¾rDr„rù) r=r rr~r*rÙÚprocessed_expressionsrrærLrNrs r"r„zIndex.__init__Vsj€ð@"Ð!ˆŒ �UàˆØ "Ðð × 4Ò 4°[Ñ AÔ Að  /ð /ñ Ø Ø Ø Ø à �NŠN˜;Ñ 'Ô 'Ð 'Ø !× (Ò (¨Ñ .Ô .Ð .Ð .à0ˆÔÝ  b§f¢f¨W°dÑ&;Ô&;Ñ<Ô<ˆŒ Ø—f’f˜X uÑ-Ô-ˆŒ Ø—v’v˜n¨eÑ4Ô4ˆ Ø �Rˆ<ˆ<ØŸš˜v™œˆDŒIð �rˆ>ˆ>Ø—F’F˜8Ñ$Ô$ˆEà ×%Ò% bÑ)Ô)Ð)õ Ô&Ø ð Øð ð ð Ø)5ð ð ð ð Ð Ø × Ò ˜UÑ #Ô #Ð #Ð #Ð #ð Ð r$c ó¼—t ||¦«|j�;||jur2tjd|j›d|jj›d|j›d�¦«‚||_|j |¦«|j }|  |¦«}t|¦«t|¦«ksJ‚d„t||¦«D¦«|_ dS)NzIndex 'z' is against table 'z(', and cannot be associated with table 'r^cóF—g|]\}}t|t¦«r|n|‘ŒSr)r(r)r²rÚcolexprs r"rºz%Index._set_parent..©s?€ð ð ð á��gõ˜t¥]Ñ3Ô3Ð @ˆDˆD¸ð ð ð r$) rDrùr*rr<r rÛr“ràrrhrŸr”)r=r*rÚcol_expressionss r"rùzIndex._set_parentšsù€Ý×)Ò)¨$°Ñ6Ô6Ð6à Œ:Ð ! e°4´:Ð&=Ð&=ÝÔ#Ð#ð”9�9�9˜dœjÔ4Ð4Ð4°eÔ6GÐ6GÐ6GðIñôð 𠈌 Ø Œ ×Ò˜$ÑÔÐàÔ&ˆ Ø×/Ò/°Ñ6Ô6ˆÝ�;ÑÔ¥3 Ñ#7Ô#7Ò7Ð7Ð7Ð7ð ð å!$ [°/Ñ!BÔ!Bð ñ ô ˆÔÐÐr$có—|jjS)z2Return the connectable associated with this Index.)r*r§rLs r"r§z Index.bind®s€ðŒzŒÐr$Ncóh—|€t|¦«}| tj|¦«|S)zÐIssue a ``CREATE`` statement for this :class:`.Index`, using the given :class:`.Connectable` for connectivity. .. seealso:: :meth:`_schema.MetaData.create_all`. rrs r"r z Index.create´s4€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô-¨tÑ4Ô4Ð4؈ r$cóh—|€t|¦«}| tj|¦«dS)zÌIssue a ``DROP`` statement for this :class:`.Index`, using the given :class:`.Connectable` for connectivity. .. seealso:: :meth:`_schema.MetaData.drop_all`. Nr rs r"r z Index.dropÃs5€ð ˆ<Ý! $Ñ'Ô'ˆDØ ×Ò�#Ô+¨TÑ2Ô2Ð2Ð2Ð2r$có–—dd t|j¦«gd„|jD¦«z|jrdgpgz¦«zS)Nz Index(%s)rÊcó,—g|]}t|¦«‘ŒSrrÌ)r²Úes r"rºz"Index.__repr__..Õs€Ð5Ð5Ð5˜q•4˜‘7”7Ð5Ð5Ð5r$z unique=True)rØrÍr rrrLs r"rMzIndex.__repr__Ñs]€ØØ �IŠIÝ�d”i‘”Ð!Ø5Ð5 DÔ$4Ð5Ñ5Ô5ñ6à”;Ð2 M ?Ð8°bñ:ñ ô ñ ð r$r') r]r^r_r`rar„rùrbr§r r rMrr$r"rrsœ€€€€€ðIðIðV€NðB$ðB$ðB$ðH ð ð ð(ððñ„Xðð ð ð ð ð 3ð 3ð 3ð 3ð ð ð ð ð r$rÚixzix_%(column_0_label)scóT—eZdZdZdZejd¬¦« dd„¦«ZdZ d„Z d „Z d „Z d „Z d „Z d „Zd„Zd„Zejd¦«d„¦«Zeee¦«Zd„Zd„Zed„¦«Z dd„Zejdd¦«d„¦«Zdd„Zdd„ZdS)ÚMetaDataaDA collection of :class:`_schema.Table` objects and their associated schema constructs. Holds a collection of :class:`_schema.Table` objects as well as an optional binding to an :class:`_engine.Engine` or :class:`_engine.Connection`. If bound, the :class:`_schema.Table` objects in the collection and their columns may participate in implicit SQL execution. The :class:`_schema.Table` objects themselves are stored in the :attr:`_schema.MetaData.tables` dictionary. :class:`_schema.MetaData` is a thread-safe object for read operations. Construction of new tables within a single :class:`_schema.MetaData` object, either explicitly or via reflection, may not be completely thread-safe. .. seealso:: :ref:`metadata_describing` - Introduction to database metadata r)z0.8zžThe :paramref:`_schema.MetaData.reflect` flag is deprecated and will be removed in a future release. Please use the :meth:`_schema.MetaData.reflect` method.)ÚreflectNFcól—tj¦«|_t||¦«|_|r|nt |_|r||_t¦«|_ i|_ tj t¦«|_||_|r,|st!jd¦«‚| ¦«dSdS)aËCreate a new MetaData object. :param bind: An Engine or Connection to bind to. May also be a string or URL instance, these are passed to :func:`_sa.create_engine` and this :class:`_schema.MetaData` will be bound to the resulting engine. :param reflect: Optional, automatically load all tables from the bound database. Defaults to False. :paramref:`_schema.MetaData.bind` is required when this option is set. :param schema: The default schema to use for the :class:`_schema.Table`, :class:`.Sequence`, and potentially other objects associated with this :class:`_schema.MetaData`. Defaults to ``None``. When this value is set, any :class:`_schema.Table` or :class:`.Sequence` which specifies ``None`` for the schema parameter will instead have this schema name defined. To build a :class:`_schema.Table` or :class:`.Sequence` that still has ``None`` for the schema even when this parameter is present, use the :attr:`.BLANK_SCHEMA` symbol. .. note:: As referred above, the :paramref:`_schema.MetaData.schema` parameter only refers to the **default value** that will be applied to the :paramref:`_schema.Table.schema` parameter of an incoming :class:`_schema.Table` object. It does not refer to how the :class:`_schema.Table` is catalogued within the :class:`_schema.MetaData`, which remains consistent vs. a :class:`_schema.MetaData` collection that does not define this parameter. The :class:`_schema.Table` within the :class:`_schema.MetaData` will still be keyed based on its schema-qualified name, e.g. ``my_metadata.tables["some_schema.my_table"]``. The current behavior of the :class:`_schema.ForeignKey` object is to circumvent this restriction, where it can locate a table given the table name alone, where the schema will be assumed to be present from this value as specified on the owning :class:`_schema.MetaData` collection. However, this implies that a table qualified with BLANK_SCHEMA cannot currently be referred to by string name from :class:`_schema.ForeignKey`. Other parts of SQLAlchemy such as Declarative may not have similar behaviors built in, however may do so in a future release, along with a consistent method of referring to a table in BLANK_SCHEMA. .. seealso:: :paramref:`_schema.Table.schema` :paramref:`.Sequence.schema` :param quote_schema: Sets the ``quote_schema`` flag for those :class:`_schema.Table`, :class:`.Sequence`, and other objects which make usage of the local ``schema`` name. :param info: Optional data dictionary which will be populated into the :attr:`.SchemaItem.info` attribute of this object. .. versionadded:: 1.0.0 :param naming_convention: a dictionary referring to values which will establish default naming conventions for :class:`.Constraint` and :class:`.Index` objects, for those objects which are not given a name explicitly. The keys of this dictionary may be: * a constraint or Index class, e.g. the :class:`.UniqueConstraint`, :class:`_schema.ForeignKeyConstraint` class, the :class:`.Index` class * a string mnemonic for one of the known constraint classes; ``"fk"``, ``"pk"``, ``"ix"``, ``"ck"``, ``"uq"`` for foreign key, primary key, index, check, and unique constraint, respectively. * the string name of a user-defined "token" that can be used to define new naming tokens. The values associated with each "constraint class" or "constraint mnemonic" key are string naming templates, such as ``"uq_%(table_name)s_%(column_0_name)s"``, which describe how the name should be composed. The values associated with user-defined "token" keys should be callables of the form ``fn(constraint, table)``, which accepts the constraint/index object and :class:`_schema.Table` as arguments, returning a string result. The built-in names are as follows, some of which may only be available for certain types of constraint: * ``%(table_name)s`` - the name of the :class:`_schema.Table` object associated with the constraint. * ``%(referred_table_name)s`` - the name of the :class:`_schema.Table` object associated with the referencing target of a :class:`_schema.ForeignKeyConstraint`. * ``%(column_0_name)s`` - the name of the :class:`_schema.Column` at index position "0" within the constraint. * ``%(column_0N_name)s`` - the name of all :class:`_schema.Column` objects in order within the constraint, joined without a separator. * ``%(column_0_N_name)s`` - the name of all :class:`_schema.Column` objects in order within the constraint, joined with an underscore as a separator. * ``%(column_0_label)s``, ``%(column_0N_label)s``, ``%(column_0_N_label)s`` - the label of either the zeroth :class:`_schema.Column` or all :class:`.Columns`, separated with or without an underscore * ``%(column_0_key)s``, ``%(column_0N_key)s``, ``%(column_0_N_key)s`` - the key of either the zeroth :class:`_schema.Column` or all :class:`.Columns`, separated with or without an underscore * ``%(referred_column_0_name)s``, ``%(referred_column_0N_name)s`` ``%(referred_column_0_N_name)s``, ``%(referred_column_0_key)s``, ``%(referred_column_0N_key)s``, ... column tokens which render the names/keys/labels of columns that are referenced by a :class:`_schema.ForeignKeyConstraint`. * ``%(constraint_name)s`` - a special key that refers to the existing name given to the constraint. When this key is present, the :class:`.Constraint` object's existing name will be replaced with one that is composed from template string that uses this token. When this token is present, it is required that the :class:`.Constraint` is given an explicit name ahead of time. * user-defined: any additional token may be implemented by passing it along with a ``fn(constraint, table)`` callable to the naming_convention dictionary. .. versionadded:: 1.3.0 - added new ``%(column_0N_name)s``, ``%(column_0_N_name)s``, and related tokens that produce concatenations of names, keys, or labels for all columns referred to by a given constraint. .. seealso:: :ref:`constraint_naming_conventions` - for detailed usage examples. z8A bind must be supplied in conjunction with reflect=TrueN)rÚ immutabledictrsrr!ÚDEFAULT_NAMING_CONVENTIONÚnaming_conventionrHr’Ú_schemasrÚ collectionsÚ defaultdictrür[r§rr<rß)r=r§rßr!r‚rãrHs r"r„zMetaData.__init__ùsÄ€õnÔ(Ñ*Ô*ˆŒ Ý! &¨,Ñ7Ô7ˆŒ ð!ð +Ð Ð å*ð Ôð ð ØˆDŒIÝ™œˆŒ ؈ŒÝ$Ô0µÑ6Ô6ˆŒàˆŒ Ø ð Øð ÝÔ'ð(ñôðð �LŠL‰NŒNˆNˆNˆNð  ð r$có—d|jzS)NzMetaData(bind=%r)rrLs r"rMzMetaData.__repr__Øs€Ø" T¤YÑ.Ð.r$cóV—t|tj¦«s|j}||jvSr')r(rr6r+rs)r=Ú table_or_keys r"rpzMetaData.__contains__Ûs,€Ý˜,­Ô(9Ñ:Ô:ð ,Ø'Ô+ˆLؘtœ{Ð*Ð*r$có¤—t||¦«}t |j||¦«|r|j |¦«dSdSr')r#ÚdictÚ __setitem__rsrärà)r=r r!r*r+s r"rxzMetaData._add_tableàsY€Ý˜T 6Ñ*Ô*ˆÝ ×Ò˜œ c¨5Ñ1Ô1Ð1Ø ð &Ø ŒM× Ò ˜fÑ %Ô %Ð %Ð %Ð %ð &ð &r$có&—t||¦«}t |j|d¦«}|�|jD]}| |¦«Œ|jr7td„|j ¦«D¦«¦«|_dSdS)Ncó*—g|]}|j® |j‘ŒSr'r×)r²Úts r"rºz*MetaData._remove_table..îs,€ðððàØ”xÐ+ð”Hà+Ð+Ð+r$) r#rërrrsr—r¼rär’r¹)r=r r!r+ÚremovedrIs r"r|zMetaData._remove_tableæsª€Ý˜T 6Ñ*Ô*ˆÝ—(’(˜4œ;¨¨TÑ2Ô2ˆØ Ð ØÔ*ð /ð /�Ø×(Ò(¨Ñ.Ô.Ð.Ð.Ø Œ=ð Ýððà!œ[×/Ò/Ñ1Ô1ðñôñôˆDŒMˆMˆMð ð r$cóP—|j|j|j|j|j|jdœS)N)rsr!ÚschemasÚ sequencesÚfk_memosrã)rsr!rärr[rãrLs r"Ú __getstate__zMetaData.__getstate__õs0€à”kØ”kØ”}؜؜Ø!%Ô!7ð  ð ð r$có°—|d|_|d|_|d|_d|_|d|_|d|_|d|_dS)Nrsr!rãróròrô)rsr!rãÚ_bindrrär[)r=Ústates r"Ú __setstate__zMetaData.__setstate__ÿsU€Ø˜H”oˆŒ ؘH”oˆŒ Ø!&Ð':Ô!;ˆÔ؈Œ Ø  Ô,ˆŒØ˜iÔ(ˆŒ ؘzÔ*ˆŒˆˆr$có—|jduS)z:True if this MetaData is bound to an Engine or Connection.N©r÷rLs r"Úis_boundzMetaData.is_bounds€ðŒz Ð%Ð%r$có—|jS)a-An :class:`_engine.Engine` or :class:`_engine.Connection` to which this :class:`_schema.MetaData` is bound. Typically, a :class:`_engine.Engine` is assigned to this attribute so that "implicit execution" may be used, or alternatively as a means of providing engine binding information to an ORM :class:`.Session` object:: engine = create_engine("someurl://") metadata.bind = engine .. seealso:: :ref:`dbengine_implicit` - background on "bound metadata" rûrLs r"r§z MetaData.bind s €ð$ŒzÐr$úsqlalchemy.engine.urlcó�—t|tj|jfz¦«rt j|¦«|_dS||_dS)z;Bind this MetaData to an Engine, Connection, string or URL.N)r(rr6ÚURLÚ sqlalchemyÚ create_enginer÷)r=Úurlr§s r"Ú_bind_tozMetaData._bind_to!sC€õ �d�DÔ-°´° Ñ:Ñ ;Ô ;ð Ý#Ô1°$Ñ7Ô7ˆDŒJˆJˆJàˆDŒJˆJˆJr$có¨—t |j¦«|j ¦«|j ¦«dS)z+Clear all Table objects from this MetaData.N)rëÚclearrsrär[rLs r"rzMetaData.clear,sF€õ � Š �4”;ÑÔÐØ Œ ×ÒÑÔÐØ Œ×ÒÑÔÐÐÐr$cóF—| |j|j¦«dS)z1Remove the given Table object from this MetaData.N)r|r r!rás r"r»zMetaData.remove3s$€ð ×Ò˜5œ: u¤|Ñ4Ô4Ð4Ð4Ð4r$cóx—tjt|j ¦«d„¬¦«¦«S)a®Returns a list of :class:`_schema.Table` objects sorted in order of foreign key dependency. The sorting will place :class:`_schema.Table` objects that have dependencies first, before the dependencies themselves, representing the order in which they can be created. To get the order in which the tables would be dropped, use the ``reversed()`` Python built-in. .. warning:: The :attr:`.MetaData.sorted_tables` attribute cannot by itself accommodate automatic resolution of dependency cycles between tables, which are usually caused by mutually dependent foreign key constraints. When these cycles are detected, the foreign keys of these tables are omitted from consideration in the sort. A warning is emitted when this condition occurs, which will be an exception raise in a future release. Tables which are not part of the cycle will still be returned in dependency order. To resolve these cycles, the :paramref:`_schema.ForeignKeyConstraint.use_alter` parameter may be applied to those constraints which create a cycle. Alternatively, the :func:`_schema.sort_tables_and_constraints` function will automatically return foreign key constraints in a separate collection when cycles are detected so that they may be applied to a schema separately. .. versionchanged:: 1.3.17 - a warning is emitted when :attr:`.MetaData.sorted_tables` cannot perform a proper sort due to cyclical dependencies. This will be an exception in a future release. Additionally, the sort will continue to return other tables not involved in the cycle in dependency order which was not the case previously. .. seealso:: :func:`_schema.sort_tables` :func:`_schema.sort_tables_and_constraints` :attr:`_schema.MetaData.tables` :meth:`_reflection.Inspector.get_table_names` :meth:`_reflection.Inspector.get_sorted_table_and_fkc_names` có—|jSr'r¬)rïs r"r«z(MetaData.sorted_tables..ls€°q´u€r$r¬)rÚ sort_tablesr­rsr¹rLs r"Ú sorted_tableszMetaData.sorted_tables8s9€õfŒÝ �4”;×%Ò%Ñ'Ô'¨_¨_Ð =Ñ =Ô =ñ ô ð r$Tc ó(‡‡‡‡‡‡—|€t‰¦«}| ¦«5} d| ‰||t¦«dœ} |  |¦«‰€‰jЉ�‰| d<t j|j ‰| ¬¦«¦«Š|r.‰ |j   | ‰¦«¦«‰�!t jˆfd„‰D¦«¦«} n‰} t‰j ¦«Š‰€ˆˆfd„t‰| ¦«D¦«} n‘t j ‰¦«r ˆˆˆˆfd„t‰| ¦«D¦«} n]ˆfd „‰D¦«} | r>‰rd ‰zpd }tjd |j›|›d d | ¦«›d�¦«‚ˆˆfd„‰D¦«} | D]G} t#|‰fi| ¤ŽŒ#tj$r$}t jd|›d|›�¦«Yd}~Œ@d}~wwxYw ddd¦«dS#1swxYwYdS)aÓ Load all available table definitions from the database. Automatically creates ``Table`` entries in this ``MetaData`` for any table available in the database but not yet present in the ``MetaData``. May be called multiple times to pick up tables recently added to the database, however no special action is taken if a table in this ``MetaData`` no longer exists in the database. :param bind: A :class:`.Connectable` used to access the database; if None, uses the existing bind on this ``MetaData``, if any. :param schema: Optional, query and reflect tables from an alternate schema. If None, the schema associated with this :class:`_schema.MetaData` is used, if any. :param views: If True, also reflect views. :param only: Optional. Load only a sub-set of available named tables. May be specified as a sequence of names or a callable. If a sequence of names is provided, only those tables will be reflected. An error is raised if a table is requested but not available. Named tables already present in this ``MetaData`` are ignored. If a callable is provided, it will be used as a boolean predicate to filter the list of potential table names. The callable is called with a table name and this ``MetaData`` instance as positional arguments and should return a true value for any table to reflect. :param extend_existing: Passed along to each :class:`_schema.Table` as :paramref:`_schema.Table.extend_existing`. .. versionadded:: 0.9.1 :param autoload_replace: Passed along to each :class:`_schema.Table` as :paramref:`_schema.Table.autoload_replace`. .. versionadded:: 0.9.1 :param resolve_fks: if True, reflect :class:`_schema.Table` objects linked to :class:`_schema.ForeignKey` objects located in each :class:`_schema.Table`. For :meth:`_schema.MetaData.reflect`, this has the effect of reflecting related tables that might otherwise not be in the list of tables being reflected, for example if the referenced table is in a different schema or is omitted via the :paramref:`.MetaData.reflect.only` parameter. When False, :class:`_schema.ForeignKey` objects are not followed to the :class:`_schema.Table` in which they link, however if the related table is also part of the list of tables that would be reflected in any case, the :class:`_schema.ForeignKey` object will still resolve to its related :class:`_schema.Table` after the :meth:`_schema.MetaData.reflect` operation is complete. Defaults to True. .. versionadded:: 1.3.0 .. seealso:: :paramref:`_schema.Table.resolve_fks` :param \**dialect_kwargs: Additional keyword arguments not mentioned above are dialect specific, and passed in the form ``_``. See the documentation regarding an individual dialect at :ref:`dialect_toplevel` for detail on documented arguments. .. versionadded:: 0.9.2 - Added :paramref:`.MetaData.reflect.**dialect_kwargs` to support dialect-level reflection options for all :class:`_schema.Table` objects reflected. NT)rˆr‡rkr‰r‹rŠr!)rícó•—g|] }‰›d|›�‘Œ S)rr)r²r r!s €r"rºz$MetaData.reflect..ês$ø€ÐDÐDÐD°$   ¨¨Ð-ÐDÐDÐDr$có&•—g|] \}}‰s|‰v¯ |‘ŒSrr)r²r ÚschnameÚcurrentrks €€r"rºz$MetaData.reflect..òs<ø€ðððá%˜˜gØ&ðð+2¸Ð*@Ð*@ðà*@Ð*@Ð*@r$có>•—g|]\}}‰s|‰v¯ ‰|‰¦«¯|‘ŒSrr)r²r rrrkÚonlyr=s €€€€r"rºz$MetaData.reflect..øsQø€ðððá%˜˜gØ'ðð,3¸'Ð+AÐ+Aؘ˜T 4Ñ(Ô(ð,Bðà+AÐ+AÐ+Ar$có•—g|]}|‰v¯|‘Œ Srr)r²r Ú availables €r"rºz$MetaData.reflect..ÿs#ø€ÐJÐJÐJ D°DÀ Ð4IÐ4I˜4Ð4IÐ4IÐ4Ir$z schema '%s'rñz7Could not reflect: requested table(s) not available in z: (rÊrýcó •—g|] }‰s|‰v¯|‘Œ Srr)r²r rrks €€r"rºz$MetaData.reflect..s8ø€ðððàØ&ðð+/°gÐ*=Ð*=ðà*=Ð*=Ð*=r$zSkipping table z: )rÚconnectr’r'r!rÚ OrderedSetÚengineÚ table_namesr¤Úget_view_namesrsr”rÞrrurØrfÚUnreflectableTableErrorr)r=r§r!Úviewsrrkr‰r‹r�ÚconnÚ reflect_optsÚavailable_w_schemaÚloadÚmissingÚsr Úuerrrrs` ` `` @@r"rßzMetaData.reflectossøøøøøø€ðz ˆ<Ý! $Ñ'Ô'ˆDà �\Š\‰^Œ^ðA F˜tð!Ø!%Ø#2Ø$4Ø*Ý!™eœeð ðˆLð × Ò  Ñ /Ô /Ð /àˆ~Øœ�àÐ!Ø)/� ˜XÑ&åœØ” ×'Ò'¨¸4Ð'Ñ@Ô@ñôˆIðð LØ× Ò  ¤×!<Ò!<¸TÀ6Ñ!JÔ!JÑKÔKÐKàÐ!Ý%)¤_ØDÐDÐDÐD¸)ÐDÑDÔDñ&ô&Ð"Ð"ð&/Ð"å˜$œ+Ñ&Ô&ˆGàˆ|ðððððå),¨YÐ8JÑ)KÔ)Kðñô��õ ”˜tÑ$Ô$ð ðððððððå),¨YÐ8JÑ)KÔ)Kðñô��ðKÐJÐJÐJ¨DÐJÑJÔJ�ØðØÐ< N°VÑ$;ÐBÀ�AÝÔ1Ð1à+/¬;¨;¸¸¸¸4¿9º9ÀWÑ;MÔ;MÐ;MÐ;MðOñôððððððà $ðñô�ð ð Fð F�ðFݘ$ Ð5Ð5¨ Ð5Ð5Ð5Ð5øÝÔ2ðFðFðFÝ”I�I¸¸¸¸t¸tÐDÑEÔEÐEÐEÐEÐEÐEÐEøøøøðFøøøð Fð{A FðA FðA FñA FôA FðA FðA FðA FðA FðA FðA FðA FøøøðA FðA FðA FðA FðA FðA Fs<¬FHÆ4GÇHÇG6ÇG1Ç,HÇ1G6Ç6HÈH ÈH rgz”the :meth:`_schema.MetaData.append_ddl_listener` method is deprecated and will be removed in a future release. Please refer to :class:`.DDLEvents`.cól‡—ˆfd„}tj|d| dd¦«z|¦«dS)z1Append a DDL event listener to this ``MetaData``.có@•—|d}‰t|||¬¦«dS)Nrs)rsr)rìrír~rsrïs €r"rðz4MetaData.append_ddl_listener..adapt_listeners+ø€Ø˜”\ˆFØ ˆH•U˜F J°vÐ >Ñ >Ô >Ð >Ð >Ð >r$rñròróNrôrõs ` r"rözMetaData.append_ddl_listenersMø€ð ?ð ?ð ?ð ?ð ?õ Œ �T˜2  × 2Ò 2°3¸Ñ <Ô <Ñ<¸nÑMÔMÐMÐMÐMr$cón—|€t|¦«}| tj|||¬¦«dS)ayCreate all tables stored in this metadata. Conditional by default, will not attempt to recreate tables already present in the target database. :param bind: A :class:`.Connectable` used to access the database; if None, uses the existing bind on this ``MetaData``, if any. :param tables: Optional list of ``Table`` objects, which is a subset of the total tables in the ``MetaData`` (others are ignored). :param checkfirst: Defaults to True, don't issue CREATEs for tables already present in the target database. N©rrsr©r=r§rsrs r"Ú create_allzMetaData.create_all"sI€ð( ˆ<Ý! $Ñ'Ô'ˆDØ ×ÒÝ Ô  °*ÀVð ñ ô ð ð ð r$cón—|€t|¦«}| tj|||¬¦«dS)atDrop all tables stored in this metadata. Conditional by default, will not attempt to drop tables not present in the target database. :param bind: A :class:`.Connectable` used to access the database; if None, uses the existing bind on this ``MetaData``, if any. :param tables: Optional list of ``Table`` objects, which is a subset of the total tables in the ``MetaData`` (others are ignored). :param checkfirst: Defaults to True, only issue DROPs for tables confirmed to be present in the target database. Nr'r r(s r"Údrop_allzMetaData.drop_all<sI€ð( ˆ<Ý! $Ñ'Ô'ˆDØ ×ÒÝ Ô ˜t° À6ð ñ ô ð ð ð r$)NFNNNN)NNFNFTT)NNT)r]r^r_r`rarr"r„rsrMrprxr|rõrùrür§rþrrbrr»r rßrcrör)r+rr$r"rÞrÞÞs€€€€€ððð0 €Nà€TÔð ðñôðØØØØØ ðBðBðBñôðBðH€Fðð"/ð/ð/ð+ð+ð+ð &ð&ð&ð ð ð ð ð ð ð+ð+ð+ð&ð&ð&ð ððð(€TÔÐ.Ñ/Ô/ððñ0Ô/ðð ˆ8�D˜(Ñ #Ô #€Dðððð5ð5ð5ð ð4 ð4 ñ„Xð4 ðpØØØ ØØØðaFðaFðaFðaFðF€T„_Ø ð ñôðNðNñôðNð ð ð ð ð4 ð ð ð ð ð r$rÞc󂇗eZdZdZdZˆfd„Zd„Zejd¦«d„¦«Z e ee ¦«Zd„Z d„Z ˆxZ S) ÚThreadLocalMetaDataaA MetaData variant that presents a different ``bind`` in every thread. Makes the ``bind`` property of the MetaData a thread-local value, allowing this collection of tables to be bound to different ``Engine`` implementations or connections in each thread. The ThreadLocalMetaData starts off bound to None in each thread. Binds must be made explicitly by assigning to the ``bind`` property or using ``connect()``. You can also re-bind dynamically multiple times per thread, just like a regular ``MetaData``. rc󪕗tj ¦«|_i|_t t |¦« ¦«dS)z Construct a ThreadLocalMetaData.N)rÚ threadingÚlocalÚcontextÚ_ThreadLocalMetaData__enginesr‘r-r„)r=r s €r"r„zThreadLocalMetaData.__init__gsDø€õ”~×+Ò+Ñ-Ô-ˆŒ ؈ŒÝ Õ! 4Ñ(Ô(×1Ò1Ñ3Ô3Ð3Ð3Ð3r$có.—t|jdd¦«S)zêThe bound Engine or Connection for this thread. This property may be assigned an Engine or Connection, or assigned a string or URL to automatically create a basic Engine for this bind with ``create_engine()``.Ú_engineN)rÔr1rLs r"r§zThreadLocalMetaData.bindns€õ�t”| Y°Ñ5Ô5Ð5r$rþcó4—t|tj|jfz¦«rU |j||j_dS#t$r.tj |¦«}||j|<||j_YdSwxYw||jvr ||j|<||j_dS)z-Bind to a Connectable in the caller's thread.N) r(rr6rr2r1r4r©rr)r=rr§rÛs r"rzThreadLocalMetaData._bind_tows³€õ �d�DÔ-°´° Ñ:Ñ ;Ô ;ð (ð )Ø'+¤~°dÔ';�” Ô$Ð$Ð$øÝð )ð )ð )ÝÔ,¨TÑ2Ô2�Ø'(�”˜tÑ$Ø'(�” Ô$Ð$Ð$Ð$ð )øøøð˜4œ>Ð)Ð)Ø'+�”˜tÑ$Ø#'ˆDŒLÔ Ð Ð s¥>¾4A6Á5A6cóH—t|jd¦«o |jjduS)z(True if there is a bind for this thread.r4N)r7r1r4rLs r"rüzThreadLocalMetaData.is_bound‹s*€õ �D”L )Ñ ,Ô ,ð 1Ø” Ô$¨DÐ0ð r$có†—|j ¦«D]&}t|d¦«r| ¦«Œ'dS)z2Dispose all bound engines, in all thread contexts.ÚdisposeN)r2r¹r7r8)r=rÛs r"r8zThreadLocalMetaData.dispose’sK€ð”×&Ò&Ñ(Ô(ð ð ˆAÝ�q˜)Ñ$Ô$ð Ø— ’ ‘ ” � øð ð r$)r]r^r_r`rar„r§rrþrrbrür8r#r$s@r"r-r-Ws³ø€€€€€ð ð ð €Nð4ð4ð4ð4ð4ð6ð6ð6ð€TÔÐ.Ñ/Ô/ð(ð(ñ0Ô/ð(ð" ˆ8�D˜(Ñ #Ô #€Dð ð ð ðððððððr$r-cóR—eZdZdZdZejd¦«Zd„Ze d„¦«Z dS)Ú_SchemaTranslateMapaProvide translation of schema names based on a mapping. Also provides helpers for producing cache keys and optimized access when no mapping is present. Used by the :paramref:`.Connection.execution_options.schema_translate_map` feature. .. versionadded:: 1.1 )r[Ú__call__Úhash_keyÚ is_defaultr!cóð‡‡—‰‰_‰�Pˆˆfd„}|‰_d ˆfd„t‰t¬¦«D¦«¦«‰_d‰_dSd‰_‰j‰_d‰_dS)Ncó^•—‰ |¦«}| |‰¦«}|Sr')Ú_default_schema_getterr\)ÚobjrZr[r=s €€r"Úschema_for_objectz7_SchemaTranslateMap.__init__..schema_for_object°s:ø€Ø#'×#>Ò#>¸sÑ#CÔ#CÐ Ø#&×#8Ò#8Ø$ dñ$ô$Ð ð(Ð'r$ú;c3ó2•K—|]}|›d‰|›�V—ŒdS)rÒNr)r²rÖr[s €r"r´z/_SchemaTranslateMap.__init__..¸sCøèè€ð%ð%Ø+,˜1˜1˜1˜d 1œg˜gÐ&ð%ð%ð%ð%ð%ð%r$r¬FrT)r[r;rØr­r¥r<r=r@)r=r[rBs`` r"r„z_SchemaTranslateMap.__init__¬s©øø€ØˆŒ Ø Ð ð (ð (ð (ð (ð (ð (ð.ˆDŒMØŸHšHð%ð%ð%ð%Ý06°tÅÐ0EÑ0EÔ0Eð%ñ%ô%ñôˆDŒMð$ˆDŒOˆOˆOàˆDŒMØ Ô7ˆDŒMØ"ˆDŒOˆOˆOr$có`—|€tSt|t¦«r|St|¦«Sr')Ú_default_schema_mapr(r:)r}r[s r"Ú_schema_getterz"_SchemaTranslateMap._schema_getterÁs3€à ˆ<Ý&Ð &Ý ˜Õ1Ñ 2Ô 2ð -؈Kå& tÑ,Ô,Ð ,r$N) r]r^r_r`Ú __slots__ÚoperatorÚ attrgetterr@r„rjrGrr$r"r:r:šsb€€€€€ð ð ð=€Ià0˜XÔ0°Ñ:Ô:Ðð#ð#ð#ð*ð-ð-ñ„[ð-ð-ð-r$r:cóX—eZdZdZdZeddd¦«d d„¦«Zd„Zd „Zd d „Z dS) riaDefines a generated column, i.e. "GENERATED ALWAYS AS" syntax. The :class:`.Computed` construct is an inline construct added to the argument list of a :class:`_schema.Column` object:: from sqlalchemy import Computed Table('square', meta, Column('side', Float, nullable=False), Column('area', Float, Computed('side * side')) ) See the linked documentation below for complete details. .. versionadded:: 1.3.11 .. seealso:: :ref:`computed_ddl` Úcomputed_columnr�z:class:`.Computed`z:paramref:`.Computed.sqltext`NcóN—t|d¬¦«|_||_d|_dS)a Construct a GENERATED ALWAYS AS DDL construct to accompany a :class:`_schema.Column`. :param sqltext: A string containing the column generation expression, which will be used verbatim, or a SQL expression construct, such as a :func:`_expression.text` object. If given as a string, the object is converted to a :func:`_expression.text` object. :param persisted: Optional, controls how this column should be persisted by the database. Possible values are: * ``None``, the default, it will use the default persistence defined by the database. * ``True``, will render ``GENERATED ALWAYS AS ... STORED``, or the equivalent for the target database if supported. * ``False``, will render ``GENERATED ALWAYS AS ... VIRTUAL``, or the equivalent for the target database if supported. Specifying ``True`` or ``False`` may raise an error when the DDL is emitted to the target database if the database does not support that persistence option. Leaving this parameter at its default of ``None`` is guaranteed to succeed for all databases that support ``GENERATED ALWAYS AS``. TrƒN)rr�Ú persistedræ)r=r�rNs r"r„zComputed.__init__ès+€õ@(¨ÈÐMÑMÔMˆŒ Ø"ˆŒØˆŒ ˆ ˆ r$có—t|jtd¦«tf¦«r)t|jtd¦«tf¦«st jd¦«‚||_||_||j_||j_dS)NzPA generated column cannot specify a server_default or a server_onupdate argument) r(r+r9rir,rr<rær8r;s r"rùzComputed._set_parent s�€ÝØ Ô !¥D¨¡J¤JµÐ#9ñ ô ð å˜FÔ2µT¸$±Z´ZÅÐ4JÑKÔKð õÔ#ð+ñôð ðˆŒ ØˆŒØ&*ˆŒ Ô#Ø%)ˆŒ Ô"Ð"Ð"r$có—|Sr'rrÏs r"r>zComputed._as_for_updates€Øˆ r$c óª—t|j|j� |jjnd|¦«}t ||j¬¦«}| |¦«S)N)rN)r3r�rær*rirNrW)r=r/r~r�Úgs r"rTz Computed.copysW€Ý"Ø ŒLØ!%¤Ð!8ˆDŒKÔ Ð ¸dØ ñ ô ˆõ �W¨¬Ð 7Ñ 7Ô 7ˆà×%Ò% aÑ(Ô(Ð(r$r') r]r^r_r`rar r„rùr>rTrr$r"ririÏs�€€€€€ððð,'€NàÐØÐ'Ð)HñôðððñôððB *ð *ð *ðððð)ð)ð)ð)ð)ð)r$ri)Er`Ú __future__rrårIrrñrrrÚbaserr r r r�r r rrrrrrrwrrrrrÚsymbolrrqr#r3Ú_self_inspectsÚ Visitabler5rfr)rrrmrÂrÌr:rr;r=r?Údeprecated_clsr3r6r@rBrDrlr€rr–rWrrárârÞr-r:rFrGrirr$r"úrYs_ðððð.'Ð&Ð&Ð&Ð&Ð&àÐÐÐØ€€€àÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ Ð Ð Ð Ð Ð Ø"Ð"Ð"Ð"Ð"Ð"ØÐÐÐÐÐØ#Ð#Ð#Ð#Ð#Ð#Ø#Ð#Ð#Ð#Ð#Ð#Ø-Ð-Ð-Ð-Ð-Ð-Ø&Ð&Ð&Ð&Ð&Ð&Ø#Ð#Ð#Ð#Ð#Ð#Ø"Ð"Ð"Ð"Ð"Ð"Ø#Ð#Ð#Ð#Ð#Ð#Ø!Ð!Ð!Ð!Ð!Ð!Ø Ð Ð Ð Ð Ð Ø#Ð#Ð#Ð#Ð#Ð#ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐð�” ˜OÑ,Ô,€ àˆtŒ{Øðñ ô € ð#ð#ð#ðBðBðBð" ÔðB<ðB<ðB<ðB<ðB<Ð" HÔ$6ñB<ôB<ñÔðB<ðJR-ðR-ðR-ðR-ðR-ˆM˜: {ñR-ôR-ðR-ðjt =ðt =ðt =ðt =ðt =ˆ]˜J¨ ñt =ôt =ðt =ðnj-ðj-ðj-ðj-ðj-�  ñj-ôj-ðj-ðZEðEðEðEðE�fñEôEðEð!ð!ð!ð!ð!�¨ ñ!ô!ð!ðHt1ðt1ðt1ðt1ðt1Ð$ñt1ôt1ðt1ðn2ð2ð2ð2ð2�fñ2ô2ð2ðjJ ðJ ðJ ðJ ðJ ˆÐ 0ñJ ôJ ðJ ðZ Ôð0'ð0'ð0'ð0'ð0'�?Ð$5ñ0'ô0'ñÔð0'ðf!Pð!Pð!Pð!Pð!P�Lñ!Pô!Pð!PðH€ÔØ ð@ñôð 1ð1ð1ð1ð1�]ñ1ô1ñ ôð 1ðT$ðT$ðT$ðT$ðT$�  ñT$ôT$ðT$ðnððððððd&ðd&ðd&ðd&ðd&˜Fñd&ôd&ðd&ðNW'ðW'ðW'ðW'ðW'Ð!6¸ ñW'ôW'ðW'ðtd)ðd)ðd)ðd)ðd)Ð0ñd)ôd)ðd)ðN`+ð`+ð`+ð`+ð`+Ð5ñ`+ô`+ð`+ðF VðVðVðVðVÐ5ñVôVðVðr )ð )ð )ð )ð )Ð1ñ )ô )ð )ðP ðP ðP ðP ðP ˆMÐ0°*ñP ôP ðP ðf/˜DÔ.°Ð6MÐ/NÑOÔOÐðv  ðv  ðv  ðv  ðv  ˆzñv  ôv  ðv  ðr@ð@ð@ð@ð@˜(ñ@ô@ð@ðF.-ð.-ð.-ð.-ð.-˜&ñ.-ô.-ð.-ðb*Ð)¨$Ñ/Ô/ÐØ$Ô3€ðU)ðU)ðU)ðU)ðU)ˆ|˜ZñU)ôU)ðU)ðU)ðU)r$