/opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__
NameSizeModeActions
attributes.cpython-311.pyc813680644editdlrm
base.cpython-311.pyc182890644editdlrm
collections.cpython-311.pyc745770644editdlrm
dependency.cpython-311.pyc439710644editdlrm
deprecated_interfaces.cpython-311.pyc231610644editdlrm
descriptor_props.cpython-311.pyc423920644editdlrm
dynamic.cpython-311.pyc209430644editdlrm
evaluator.cpython-311.pyc89160644editdlrm
events.cpython-311.pyc1172030644editdlrm
exc.cpython-311.pyc101560644editdlrm
identity.cpython-311.pyc179340644editdlrm
instrumentation.cpython-311.pyc262120644editdlrm
interfaces.cpython-311.pyc314500644editdlrm
loading.cpython-311.pyc344410644editdlrm
mapper.cpython-311.pyc1371230644editdlrm
path_registry.cpython-311.pyc207410644editdlrm
persistence.cpython-311.pyc713850644editdlrm
properties.cpython-311.pyc168780644editdlrm
query.cpython-311.pyc1905890644editdlrm
relationships.cpython-311.pyc1440070644editdlrm
scoping.cpython-311.pyc87380644editdlrm
session.cpython-311.pyc1463200644editdlrm
state.cpython-311.pyc400190644editdlrm
strategies.cpython-311.pyc980710644editdlrm
strategy_options.cpython-311.pyc664690644editdlrm
sync.cpython-311.pyc70290644editdlrm
unitofwork.cpython-311.pyc342400644editdlrm
util.cpython-311.pyc545720644editdlrm
__init__.cpython-311.pyc124930644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__/util.cpython-311.pyc (54572B)
§ ÑÃ$Ç5˜Ü6ãóÖ—ddlZddlZddlZddlmZddlmZddlmZddlmZddlm Z ddlm Z dd lm Z dd lm Z dd lm Z dd lmZdd lmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlmZed¦«Z Gd„de¦«Z!d„Z" d;d „Z#d!„Z$Gd"„d#ej%¦«Z&Gd$„d%e'¦«Z(Gd&„d'e ¦«Z)ej*e(¦«d(„¦«ej*e)¦«d)„¦«dd-„Z-d.„Z.d/„Z/Gd0„d1ej0¦«Z1 d?d2„Z2d@d3„Z3d>d4„Z4d5„Z5d6„Z6d7„Z7d8„Z8d9„Z9d:„Z:dS)AéNé)Ú attributes)Ú_class_to_mapper)Ú _never_set)Ú _none_set)Ú attribute_str)Ú class_mapper)ÚInspectionAttr)Ú instance_str)Ú object_mapper)Ú object_state)Ústate_attribute_str)Ústate_class_str)Ú state_str)ÚMapperProperty)ÚPropComparator)Ú PathRegistryé)Úevent)Úexc)Ú inspection)Úsql)Úutil)Ú expression)Údeleteú delete-orphanÚallÚmergeÚexpungeú save-updateúrefresh-expireÚnonecór—eZdZdZe gd¢¦«ZeZgd¢ZdZ d„Z d„Z e d„¦«Z dS) ÚCascadeOptionszHKeeps track of the options sent to :paramref:`.relationship.cascade`)rr"r)rrr"r!)Ú save_updaterÚrefresh_expirerrÚ delete_orphanc óò—t|tj¦«s|€| |¦«St |¦«}| |j¦«rYtjdd  d„t| |j¦«¦«D¦«¦«z¦«‚d|vr|  |j ¦«d|vr|  ¦«| d¦«t t"|¦«}d|v|_d|v|_d|v|_d |v|_d |v|_d |v|_|jr|jstjd ¦«|S) NzInvalid cascade option(s): %sú, có,—g|]}t|¦«‘ŒS©)Úrepr©Ú.0Úxs úg/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/orm/util.pyú z*CascadeOptions.__new__..Ps.€ðððàõ˜Q™œðððórr"r rr!rrrz5The 'delete-orphan' cascade option requires 'delete'.)Ú isinstancerÚ string_typesÚ from_stringÚsetÚ differenceÚ_allowed_cascadesÚsa_excÚ ArgumentErrorÚjoinÚsortedÚupdateÚ_add_w_all_cascadesÚclearÚdiscardÚ frozensetÚ__new__r$r%rr&rrr'Úwarn)ÚclsÚ value_listÚvaluesÚselfs r0rBzCascadeOptions.__new__Hs–€Ý �j¥$Ô"3Ñ 4Ô 4ð /¸ Ð8JØ—?’? :Ñ.Ô.Ð .Ý�Z‘”ˆØ × Ò ˜SÔ2Ñ 3Ô 3ð ÝÔ&Ø/Ø—)’)ððå!'Ø"×-Ò-¨cÔ.CÑDÔDñ"ô"ðñôñôññ ô ð ð �Fˆ?ˆ?Ø �MŠM˜#Ô1Ñ 2Ô 2Ð 2Ø �VÐ Ð Ø �LŠL‰NŒNˆNØ�Š�uÑÔÐå× Ò ¥°Ñ8Ô8ˆØ(¨FÐ2ˆÔØ &Ð(ˆŒ Ø.°&Ð8ˆÔØ Ð&ˆŒ Ø  FÐ*ˆŒ Ø,°Ð6ˆÔà Ô ð  d¤kð Ý ŒIØJñ ô ð ðˆ r2có`—dd d„t|¦«D¦«¦«zS)NzCascadeOptions(%r)ú,có—g|]}|‘ŒSr+r+r-s r0r1z+CascadeOptions.__repr__..ns€Ð0IÐ0IÐ0I°q°Ð0IÐ0IÐ0Ir2)r;r<©rGs r0Ú__repr__zCascadeOptions.__repr__ms.€Ø# s§x¢xÐ0IÐ0I½FÀ4¹L¼LÐ0IÑ0IÔ0IÑ'JÔ'JÑKÐKr2cóZ—d„tjd|pd¦«D¦«}||¦«S)Ncó—g|]}|¯|‘ŒSr+r+)r.Úcs r0r1z.CascadeOptions.from_string..rs€ÐBÐBÐB˜ÀÐB�!ÐBÐBÐBr2z\s*,\s*Ú)ÚreÚsplit)rDÚargrFs r0r5zCascadeOptions.from_stringps3€àBÐB�RœX j°#°)¸Ñ<Ô<ÐBÑBÔBˆØˆs�6‰{Œ{Ðr2N)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú all_cascadesr7r>r8Ú_viewonly_cascadesÚ __slots__rBrLÚ classmethodr5r+r2r0r$r$4s—€€€€€ð)ð)ð'×1Ò1Ø(Ð(Ð(ñôÐð%ÐàEÐEÐEÐð€Ið#ð#ð#ðJLðLðLðððñ„[ðððr2r$có`‡‡‡‡ —‰sˆfd„Š |r!ˆ ˆˆˆfd„}ˆ ˆˆˆfd„}ˆ ˆˆˆfd„}ˆ ˆˆˆfd„}nˆ ˆˆˆfd„}ˆ ˆˆˆfd„}ˆ ˆˆˆfd„}tj|d |d d ¬ ¦«tj|d |d ¬ ¦«tj|d|d d ¬ ¦«|rtj|d|d d ¬ ¦«dSdS)zNRuns a validation method on an attribute value to be set or appended. có:•—|j‰j}|j|uS©N)ÚmanagerÚimpl)ÚstateÚ initiatorr`Úkeys €r0Údetect_is_backrefz,_validator_events..detect_is_backref}sø€Ø”= Ô%Ô*ˆDØ”>¨Ð-Ð -r2cóŠ•—|jtjur.‰s ‰||¦«s ‰| ¦«‰|d¦«S|S©NF©ÚoprÚOP_BULK_REPLACEÚobj©raÚvaluerbrdÚinclude_backrefsrcÚ validators €€€€r0Úappendz!_validator_events..appendƒsUø€ØŒ|¥:Ô#=Ð=Ð=Ø ð>Ø(9Ð(9¸%ÀÑ(KÔ(Kð>ð!�y §¢¡¤¨c°5¸%Ñ@Ô@Ð@à� r2có|•‡—‰s ‰||¦«s+| ¦«Šˆˆˆfd„|D¦«|dd…<dSdS)Ncó,•—g|]}‰‰‰|d¦«‘ŒS)Fr+©r.rlrcrjrns €€€r0r1z7_validator_events..bulk_set..Žs6ø€ðððØ:?�I�I˜c 3¨¨uÑ5Ô5ðððr2©rj©rarFrbrjrdrmrcrns @€€€€r0Úbulk_setz#_validator_events..bulk_set‹svøø€Øð Ð'8Ð'8¸À Ñ'JÔ'Jð Ø—i’i‘k”k�ððððððØCIðñô��q�q�q‘ � � ð ð r2cód•—‰s ‰||¦«s ‰| ¦«‰|d¦«S|Srfrs©rarlÚoldvaluerbrdrmrcrns €€€€r0Úset_z_validator_events..set_’sCø€Øð Ð'8Ð'8¸À Ñ'JÔ'Jð Ø �y §¢¡¤¨c°5¸%Ñ@Ô@Ð@à� r2cóh•—‰s ‰||¦«s"‰| ¦«‰|d¦«dSdS)NTrsrks €€€€r0Úremovez!_validator_events..remove˜sNø€Øð 9Ð'8Ð'8¸À Ñ'JÔ'Jð 9Ø� ˜%Ÿ)š)™+œ+ s¨E°4Ñ8Ô8Ð8Ð8Ð8ð 9ð 9r2c󈕗|jtjur-‰s ‰||¦«s‰| ¦«‰|¦«S|Sr^rgrks €€€€r0roz!_validator_events..appendžsSø€ØŒ|¥:Ô#=Ð=Ð=Ø ð>Ø(9Ð(9¸%ÀÑ(KÔ(Kð>ð!�y §¢¡¤¨c°5Ñ9Ô9Ð9à� r2có|•‡—‰s ‰||¦«s+| ¦«Šˆˆˆfd„|D¦«|dd…<dSdS)Ncó*•—g|]}‰‰‰|¦«‘ŒSr+r+rrs €€€r0r1z7_validator_events..bulk_set..©s'ø€ÐLÐLÐL¸E˜Y˜Y s¨C°Ñ7Ô7ÐLÐLÐLr2rsrts @€€€€r0ruz#_validator_events..bulk_set¦sgøø€Øð MÐ'8Ð'8¸À Ñ'JÔ'Jð MØ—i’i‘k”k�ØLÐLÐLÐLÐLÐLÀVÐLÑLÔL��q�q�q‘ � � ð Mð Mr2cób•—‰s ‰||¦«s‰| ¦«‰|¦«S|Sr^rsrws €€€€r0ryz_validator_events..set_«sAø€Øð Ð'8Ð'8¸À Ñ'JÔ'Jð Ø �y §¢¡¤¨c°5Ñ9Ô9Ð9à� r2roT)ÚrawÚretvalÚ bulk_replace)r€r6r{N)rÚlisten) ÚdescrcrnÚinclude_removesrmroruryr{rds `` ` @r0Ú_validator_eventsr†vsßøøøø€ð ð.ð .ð .ð .ð .ð .ðð.ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð  9ð 9ð 9ð 9ð 9ð 9ð 9ð 9ð 9ð  ð ð ð ð ð ð ð ð Mð Mð Mð Mð Mð Mð Mð Mð  ð ð ð ð ð ð ð õ  „L��x ¨T¸$Ð?Ñ?Ô?Ð?Ý „L��~ x°TÐ:Ñ:Ô:Ð:Ý „L��u˜d¨°TÐ:Ñ:Ô:Ð:ØðDÝ Œ �T˜8 V°¸dÐCÑCÔCÐCÐCÐCðDðDr2Úp_unionTc ó"‡‡ ‡ ‡ ‡ —tj¦«}iŠ iŠ |D]�}||Š t‰ tj¦«r‰  ¦«Š ‰ ||<i}‰ jD]5}| |j¦«|||j<|j ‰ |j<Œ6|‰ ‰ <Œ‚ˆˆ ˆ fd„Š g}|  ¦«D]±\} Š |�s|  tj ˆ ˆ fd„|D¦«tj tj| ¦«¦« |¦«gz‰ g¬¦«¦«Œz|  tj ˆ ˆ fd„|D¦«‰ g¬¦«¦«Œ²tj|Ž |¦«S)a0Create a ``UNION`` statement used by a polymorphic mapper. See :ref:`concrete_inheritance` for an example of how this is used. :param table_map: mapping of polymorphic identities to :class:`_schema.Table` objects. :param typecolname: string name of a "discriminator" column, which will be derived from the query, producing the polymorphic identity for each row. If ``None``, no polymorphic discriminator is generated. :param aliasname: name of the :func:`~sqlalchemy.sql.expression.alias()` construct generated. :param cast_nulls: if True, non-existent columns, which are represented as labeled NULLs, will be passed into CAST. This is a legacy behavior that is problematic on some backends such as Oracle - in which case it can be set to False. cóF•— ‰||S#t$r…‰rAtjtj¦«‰|¦« |¦«cYStjtj¦«‰|¦« |¦«cYSwxYwr^)ÚKeyErrorrÚcastÚnullÚlabelÚ type_coerce)ÚnameÚtableÚ cast_nullsÚ colnamemapsÚtypess €€€r0Úcolzpolymorphic_union..colás¡ø€ð LؘuÔ% dÔ+Ð +øÝð Lð Lð LØð LÝ”x¥¤¡ ¤ ¨E°$¬KÑ8Ô8×>Ò>¸tÑDÔDÐDÐDÐD唥s¤x¡z¤z°5¸´;Ñ?Ô?×EÒEÀdÑKÔKÐKÐKÐKð  Løøøsƒ ‘A B Á?B ÂB Ncó(•—g|]}‰|‰¦«‘ŒSr+r+©r.r�r”r�s €€r0r1z%polymorphic_union..ïó%ø€Ð;Ð;Ð;¨$�S�S˜˜uÑ%Ô%Ð;Ð;Ð;r2)Úfrom_objcó(•—g|]}‰|‰¦«‘ŒSr+r+r–s €€r0r1z%polymorphic_union..ûr—r2)rÚ OrderedSetr3rÚSelectÚaliasrOÚaddrcÚtypeÚitemsroÚselectÚliteral_columnÚsql_utilÚ_quote_ddl_exprr�Ú union_all)Ú table_mapÚ typecolnameÚ aliasnamer‘ÚcolnamesrcÚmrOÚresultÚtype_r”r’r�r“s ` @@@@r0Úpolymorphic_unionr¬¸súøøøøø€õ,ŒÑ Ô €HØ€KØ €EØððˆØ˜#”ˆõ �e�SœZÑ (Ô (ð #Ø—K’K‘M”MˆEØ"ˆI�c‰Nà ˆØ”ð "ð "ˆAØ �LŠL˜œÑ Ô Ð ØˆAˆaŒe‰HØœ6ˆE�!”%‰LˆL؈ �EÑÐðLðLðLðLðLðLðLð€FØ!ŸšÑ)Ô)ðð‰ ˆˆuØ Ð "Ø �MŠMÝ” Ø;Ð;Ð;Ð;Ð;°(Ð;Ñ;Ô;åÔ*Ý$Ô4°UÑ;Ô;ñôçš%  Ñ,Ô,ðñð $˜Wðñôñ ô ð ð ð �MŠMÝ” Ø;Ð;Ð;Ð;Ð;°(Ð;Ñ;Ô;ÀuÀgðñôñ ô ð ð õ Œ=˜&Ð !× 'Ò '¨ Ñ 2Ô 2Ð2r2cóú—|�rd}t|¦«}|dkrD|d} | d¦«}nF#t$r| d¦«}Yn%wxYw|dvr|\}}ntjd|z¦«‚| dd¦«}|r*tjd d  |¦«z¦«‚t |¦«}|€)| tj |¦«|¬ ¦«S|  ||¬ ¦«S| d ¦«}|r/tjd d  |j ¦«z¦«‚t|¦«}|  |¦«S) a)Generate "identity key" tuples, as are used as keys in the :attr:`.Session.identity_map` dictionary. This function has several call styles: * ``identity_key(class, ident, identity_token=token)`` This form receives a mapped class and a primary key scalar or tuple as an argument. E.g.:: >>> identity_key(MyClass, (1, 2)) (, (1, 2), None) :param class: mapped class (must be a positional argument) :param ident: primary key, may be a scalar or tuple argument. :param identity_token: optional identity token .. versionadded:: 1.2 added identity_token * ``identity_key(instance=instance)`` This form will produce the identity key for a given instance. The instance need not be persistent, only that its primary key attributes are populated (else the key will contain ``None`` for those missing values). E.g.:: >>> instance = MyClass(1, 2) >>> identity_key(instance=instance) (, (1, 2), None) In this form, the given instance is ultimately run though :meth:`_orm.Mapper.identity_key_from_instance`, which will have the effect of performing a database check for the corresponding row if the object is expired. :param instance: object instance (must be given as a keyword arg) * ``identity_key(class, row=row, identity_token=token)`` This form is similar to the class/tuple form, except is passed a database result row as a :class:`.RowProxy` object. E.g.:: >>> row = engine.execute("select * from table where a=1 and b=2").\ first() >>> identity_key(MyClass, row=row) (, (1, 2), None) :param class: mapped class (must be a positional argument) :param row: :class:`.RowProxy` row returned by a :class:`_engine.ResultProxy` (must be given as a keyword arg) :param identity_token: optional identity token .. versionadded:: 1.2 added identity_token NrrÚrowÚident)réz1expected up to three positional arguments, got %sÚidentity_tokenzunknown keyword arguments: %sr))r±Úinstance)ÚlenÚpoprŠr9r:r;r Úidentity_key_from_primary_keyrÚto_listÚidentity_key_from_rowÚkeysr Úidentity_key_from_instance) ÚargsÚkwargsr®ÚlargsÚclass_r¯r±Úmapperr²s r0Ú identity_keyr¿s¼€ð@ ñ%;؈Ý�D‘ ” ˆØ �AŠ:ˆ:ؘ!”WˆFð ,Ø—j’j Ñ'Ô'��øÝð ,ð ,ð ,ØŸ š  7Ñ+Ô+���ð ,øøøà �fˆ_ˆ_Ø ‰MˆF�E�EåÔ&ØFÈÑNñôð ð ŸšÐ$4°dÑ;Ô;ˆØ ð ÝÔ&Ø/°$·)²)¸FÑ2CÔ2CÑCñôð õ˜fÑ%Ô%ˆØ ˆ;Ø×7Ò7Ý” ˜UÑ#Ô#°Nð8ñôð ð×/Ò/Ø Nð0ñôð ð—:’:˜jÑ)Ô)ˆØ ð ÝÔ&Ø/°$·)²)¸F¼KÑ2HÔ2HÑHñôð õ˜xÑ(Ô(ˆØ×0Ò0°Ñ:Ô:Ð:s¤:ºAÁAcó(—eZdZdZ dd„Zd„ZdS)Ú ORMAdapterzaColumnAdapter subclass which excludes adaptation of entities from non-matching mappers. NFTc óÚ—tj|¦«}|j|_|j}|j}|r||_nd|_t j |||||||j ¬¦«dS)N)Úadapt_requiredÚallow_label_resolveÚanonymize_labelsÚ include_fn) rÚinspectr¾Ú selectableÚis_aliased_classÚ aliased_classr¢Ú ColumnAdapterÚ__init__Ú _include_fn) rGÚentityÚ equivalentsrÃrÄrÅÚinforÈrÉs r0rÌzORMAdapter.__init__osŠ€õÔ! &Ñ)Ô)ˆà”kˆŒ Ø”_ˆ ØÔ0ÐØ ð &Ø!'ˆDÔ Ð à!%ˆDÔ åÔ×'Ò'Ø Ø Ø Ø)Ø 3Ø-ØÔ'ð (ñ ô ð ð ð r2cór—|j dd¦«}| p| |j¦«S)NÚ parentmapper)Ú _annotationsÚgetÚisar¾)rGÚelemrÎs r0rÍzORMAdapter._include_fn‹s5€ØÔ"×&Ò& ~°tÑ<Ô<ˆØˆzÐ4˜VŸZšZ¨¬ Ñ4Ô4Ð4r2)NFTF)rTrUrVrWrÌrÍr+r2r0rÁrÁisO€€€€€ðððØØ Øð  ð ð ð ð85ð5ð5ð5ð5r2rÁcó>—eZdZdZ d d„Zd„Zd„Zd„ZdS) Ú AliasedClassaàRepresents an "aliased" form of a mapped class for usage with Query. The ORM equivalent of a :func:`~sqlalchemy.sql.expression.alias` construct, this object mimics the mapped class using a ``__getattr__`` scheme and maintains a reference to a real :class:`~sqlalchemy.sql.expression.Alias` object. A primary purpose of :class:`.AliasedClass` is to serve as an alternate within a SQL statement generated by the ORM, such that an existing mapped entity can be used in multiple contexts. A simple example:: # find all pairs of users with the same name user_alias = aliased(User) session.query(User, user_alias).\ join((user_alias, User.id > user_alias.id)).\ filter(User.name == user_alias.name) :class:`.AliasedClass` is also capable of mapping an existing mapped class to an entirely new selectable, provided this selectable is column- compatible with the existing mapped selectable, and it can also be configured in a mapping as the target of a :func:`_orm.relationship`. See the links below for examples. The :class:`.AliasedClass` object is constructed typically using the :func:`_orm.aliased` function. It also is produced with additional configuration when using the :func:`_orm.with_polymorphic` function. The resulting object is an instance of :class:`.AliasedClass`. This object implements an attribute scheme which produces the same attribute and method interface as the original mapped class, allowing :class:`.AliasedClass` to be compatible with any attribute technique which works on the original class, including hybrid attributes (see :ref:`hybrids_toplevel`). The :class:`.AliasedClass` can be inspected for its underlying :class:`_orm.Mapper`, aliased selectable, and other information using :func:`_sa.inspect`:: from sqlalchemy import inspect my_alias = aliased(MyClass) insp = inspect(my_alias) The resulting inspection object is an instance of :class:`.AliasedInsp`. .. seealso:: :func:`.aliased` :func:`.with_polymorphic` :ref:`relationship_aliased_class` :ref:`relationship_to_window_function` NFr+c óæ—t|¦«} |€| j ||¬¦«}t|| |||r|n| j|�|n| j|| || ¦ « |_d| jjz|_dS)N)r�ÚflatzAliasedClass_%s) rÚ_with_polymorphic_selectablerœÚ AliasedInspÚwith_polymorphic_mappersÚpolymorphic_onÚ _aliased_inspr½rT) rGrDrœr�rÚÚadapt_on_namesrÝÚwith_polymorphic_discriminatorÚ base_aliasÚuse_mapper_pathÚrepresents_outer_joinr¾s r0rÌzAliasedClass.__init__Ës£€õ" #Ñ&Ô&ˆØ ˆ=ØÔ7×=Ò=Ø ð>ñôˆEõ)Ø Ø Ø Ø à'ð 1Ð $Ð $àÔ0à-Ð9ð +Ð *àÔ&Ø Ø Ø Ø !ñ ô ˆÔð"*¨F¬MÔ,BÑBˆŒ ˆ ˆ r2có¶— |jd}|j}t||¦«}n#t$rt ¦«‚wxYwt |d¦«r*t |d¦«rt j|j|¦«St |d¦«r|  d|¦«}t |d¦«r&|  |¦«}t|||¦«|S)NrßÚ__call__Ú__self__Ú__get__Úadapt_to_entity) Ú__dict__Ú_targetÚgetattrrŠÚAttributeErrorÚhasattrr“Ú MethodTypeÚ__func__rèréÚsetattr)rGrcrßÚtargetÚattrs r0Ú __getattr__zAliasedClass.__getattr__òs÷€ð (Ø œM¨/Ô:ˆMð#Ô*ˆFå˜6 3Ñ'Ô'ˆDˆDøõ ð #ð #ð #Ý Ñ"Ô"Ð "ð #øøøõ �4˜Ñ $Ô $ð 9­°°zÑ)BÔ)Bð 9ÝÔ# D¤M°4Ñ8Ô8Ð 8õ �4˜Ñ #Ô #ð ,Ø—<’<  dÑ+Ô+ˆDõ �4Ð*Ñ +Ô +ð %Ø×'Ò'¨ Ñ6Ô6ˆDÝ �D˜#˜tÑ $Ô $Ð $àˆ s ‚ '§AcóH—dt|¦«|jjjfzS)Nz)ÚidrßrërTrKs r0rLzAliasedClass.__repr__s)€Ø+Ý ˆt‰HŒHØ Ô Ô &Ô /ð/ ñ ð r2có*—t|j¦«Sr^)ÚstrrßrKs r0Ú__str__zAliasedClass.__str__s€Ý�4Ô%Ñ&Ô&Ð&r2) NNFFr+NNFF)rTrUrVrWrÌrôrLrùr+r2r0rØrØ�s‚€€€€€ð8ð8ðzØ Ø Øà!#Ø'+ØØØ#ð%Cð%Cð%Cð%CðNððð: ð ð ð 'ð'ð'ð'ð'r2rØcóÊ—eZdZdZd„Zed„¦«ZdZ ed„¦«Zed„¦«Z d„Z d„Z d „Z d „Z ejd „¦«Zejd „¦«Zd „Zd„Zd„ZdS)rÜaûProvide an inspection interface for an :class:`.AliasedClass` object. The :class:`.AliasedInsp` object is returned given an :class:`.AliasedClass` using the :func:`_sa.inspect` function:: from sqlalchemy import inspect from sqlalchemy.orm import aliased my_alias = aliased(MyMappedClass) insp = inspect(my_alias) Attributes on :class:`.AliasedInsp` include: * ``entity`` - the :class:`.AliasedClass` represented. * ``mapper`` - the :class:`_orm.Mapper` mapping the underlying class. * ``selectable`` - the :class:`_expression.Alias` construct which ultimately represents an aliased :class:`_schema.Table` or :class:`_expression.Select` construct. * ``name`` - the name of the alias. Also is used as the attribute name when returned in a result tuple from :class:`_query.Query`. * ``with_polymorphic_mappers`` - collection of :class:`_orm.Mapper` objects indicating all those mappers expressed in the select construct for the :class:`.AliasedClass`. * ``polymorphic_on`` - an alternate column or SQL expression which will be used as the "discriminator" for a polymorphic load. .. seealso:: :ref:`inspection_toplevel` c ób—tj|¦«|_||_|x|_x|_|_||_||_tj|p|¦«|_ ||_ | |_ |r|d|_ ||_ g|_|j D]^} | |urXt| j||| |¬¦«} t#|j| jj| ¦«|j | j¦«Œ_nd|_ |g|_ t-j||j| d¬¦«|_| |_|j|_dS)NT)râràrãF)rÏràrÅ)ÚweakrefÚrefÚ _weak_entityr¾rÈÚpersist_selectableÚ local_tabler�rÞÚ _base_aliasÚ_use_mapper_pathräÚ_is_with_polymorphicrÝÚ_with_polymorphic_entitiesrØr½rñrÎrTrorßr¢rËÚ_equivalent_columnsÚ_adapterÚ_adapt_on_namesrë) rGrÎr¾rÈr�rÝrÞrrràräÚpolyÚents r0rÌzAliasedInsp.__init__@se€õ$œK¨Ñ/Ô/ˆÔ؈Œ ð *ð *ˆŒð *Ø Ô #Ø Ô ØˆŒ Ø,ˆÔÝ"œ; {Ð':°dÑ;Ô;ˆÔØ 0ˆÔØ%:ˆÔ"à #ð 5Ø(,ˆDÔ %Ø,DˆDÔ )Ø.0ˆDÔ +ØÔ5ð Nð N�ؘvÐ%Ð%Ý&Øœ Ø"Ø#'Ø'5Ø(8ð ñô�Cõ˜DœK¨¬Ô)=¸sÑCÔCÐCØÔ3×:Ò:¸3Ô;LÑMÔMÐMøð Nð).ˆDÔ %Ø-3¨HˆDÔ )å Ô.Ø ØÔ2Ø)Ø!ð  ñ ô ˆŒ ð .ˆÔØ”}ˆŒ ˆ ˆ r2có*—| ¦«Sr^)rþrKs r0rÎzAliasedInsp.entityws€à× Ò Ñ"Ô"Ð"r2Tcó—|jjS)zUReturn the mapped class ultimately represented by this :class:`.AliasedInsp`.)r¾r½rKs r0r½zAliasedInsp.class_~s€ðŒ{Ô!Ð!r2cóP—|jr |jjStj|¦«Sr^)rr¾Ú_path_registryrÚ per_mapperrKs r0r zAliasedInsp._path_registry„s)€à Ô ð 1Ø”;Ô-Ð -åÔ*¨4Ñ0Ô0Ð 0r2c óš—|j|j|j|j|j|j|j| ¦«|j|j dœ S)N) rÎr¾rœr�ràrÝrárârãrä) rÎr¾rÈr�rrÝrÞrrrärKs r0Ú __getstate__zAliasedInsp.__getstate__‹sR€à”kØ”kØ”_Ø”IØ"Ô2Ø(,Ô(EØ.2Ô.AØ×*Ò*Ñ,Ô,Ø#Ô4Ø%)Ô%?ð  ð  ð r2c óº—| |d|d|d|d|d|d|d|d|d |d ¦ « dS) NrÎr¾rœr�rÝrárârãràrä)rÌ)rGras r0Ú __setstate__zAliasedInsp.__setstate__™ss€Ø � Š Ø �(ŒOØ �(ŒOØ �'ŒNØ �&ŒMØ Ð,Ô -Ø Ð2Ô 3Ø �,Ô Ø Ð#Ô $Ø Ð"Ô #Ø Ð)Ô *ñ ô ð ð ð r2cól—|j |¦« ||jdœ¦«S)N)Ú parententityrÒ)rÚtraverseÚ _annotater¾)rGrÖs r0Ú_adapt_elementzAliasedInsp._adapt_element§s7€ØŒ}×%Ò% dÑ+Ô+×5Ò5Ø!°4´;Ð ?Ð ?ñ ô ð r2cóΗ|j}||vr/||jur|St|j|jj¦«jS| |j¦«r|SJd|›d|›�¦«‚)NFzmapper z doesn't correspond to )rÝr¾rìrÎr½rTrßrÕ)rGr¾Ú self_polys r0Ú_entity_for_mapperzAliasedInsp._entity_for_mapper¬s�€ØÔ1ˆ Ø �YРРؘœÐ$Ð$Ø� 娔K ¤Ô!7ñôäð ð�ZŠZ˜œ Ñ $Ô $ð P؈Kà OÐ OÀ&À&À&È$È$ÐOÑ OÔ O�5r2có–‡—‰jj\}}‰j |¦«ˆfd„| ¦«D¦«fS)NcóL•—i|] \}}‰j |¦«|“Œ!Sr+)rr)r.r”ÚparamrGs €r0ú z+AliasedInsp._get_clause..¿s?ø€ð ð ð á�C˜ð” ×&Ò& sÑ+Ô+¨Uð ð ð r2)r¾Ú _get_clauserrrŸ)rGÚonclauseÚ replacemaps` r0rzAliasedInsp._get_clauseºsaø€à#œ{Ô6ш�*à ŒM× "Ò " 8Ñ ,Ô ,ð ð ð ð à",×"2Ò"2Ñ"4Ô"4ð ñ ô ð ð r2có—iSr^r+rKs r0Ú_memoized_valueszAliasedInsp._memoized_valuesÅs€àˆ r2cóV—||jvr |j|S||i|¤Žx|j|<}|Sr^)r#)rGrcÚ callable_rºÚkwrls r0Ú_memozAliasedInsp._memoÉsD€Ø �$Ô'Ð 'Ð 'ØÔ(¨Ô-Ð -à1:°¸DÐ1GÀBÐ1GÐ1GÐ GˆDÔ ! #Ñ &¨ØˆLr2có¢—|jr(dd d„|jD¦«¦«z}nd}dt|¦«|jj|fzS)Nz(%s)r)c3ó.K—|]}|jjV—ŒdSr^)r½rT©r.Úmps r0ú z'AliasedInsp.__repr__..Òs8èè€ð+ð+Ø')�” Ô"ð+ð+ð+ð+ð+ð+r2rPz)rÝr;rör½rT)rGÚ with_polys r0rLzAliasedInsp.__repr__Ðsu€Ø Ô (ð Ø §¢ð+ð+Ø-1Ô-Jð+ñ+ô+ñ"ô"ñˆIˆIðˆIØ,Ý ˆt‰HŒHØ ŒKÔ Ø ð0 ñ ð r2có ‡—‰jr7d‰jj›dd ˆfd„‰jD¦«¦«›d�Sd‰jj›d�S)Nzwith_polymorphic(z, [r)c3óB•K—|]}|‰ju¯ |jjV—ŒdSr^)r¾r½rT)r.r+rGs €r0r,z&AliasedInsp.__str__..ásAøèè€ððàØ ¤Ð,Ð,ð”IÔ&à,Ð,Ð,Ð,ððr2z])zaliased(ú))rrërTr;rÝrKs`r0rùzAliasedInsp.__str__ÝsŠø€Ø Ô $ð <ð <à” Ô%Ð%Ð%Ø— ’ ððððà"Ô;ðñôñôðððð ð <ð%)¤LÔ$9Ð$9Ð$9Ð;Ð ;r2N)rTrUrVrWrÌÚpropertyrÎrÉr½r rrrrrÚmemoized_propertyrr#r'rLrùr+r2r0rÜrÜs3€€€€€ð$ð$ðL5%ð5%ð5%ðnð#ð#ñ„Xð#ðÐØà ð"ð"ñ„Xð"ð ð1ð1ñ„Xð1ð  ð  ð  ð  ð  ð  ð ð ð ð Pð Pð Pð Ôð ð ñÔð ð ÔððñÔððððð  ð  ð  ð <ð <ð <ð <ð r5ës €°&Ô2F€r2có—|Sr^r+r4s r0r5r5ìs€°€r2Fcó¸—t|tj¦«r-|rtjd¦«‚| ||¬¦«St |||||¬¦«S)aøProduce an alias of the given element, usually an :class:`.AliasedClass` instance. E.g.:: my_alias = aliased(MyClass) session.query(MyClass, my_alias).filter(MyClass.id > my_alias.id) The :func:`.aliased` function is used to create an ad-hoc mapping of a mapped class to a new selectable. By default, a selectable is generated from the normally mapped selectable (typically a :class:`_schema.Table`) using the :meth:`_expression.FromClause.alias` method. However, :func:`.aliased` can also be used to link the class to a new :func:`_expression.select` statement. Also, the :func:`.with_polymorphic` function is a variant of :func:`.aliased` that is intended to specify a so-called "polymorphic selectable", that corresponds to the union of several joined-inheritance subclasses at once. For convenience, the :func:`.aliased` function also accepts plain :class:`_expression.FromClause` constructs, such as a :class:`_schema.Table` or :func:`_expression.select` construct. In those cases, the :meth:`_expression.FromClause.alias` method is called on the object and the new :class:`_expression.Alias` object returned. The returned :class:`_expression.Alias` is not ORM-mapped in this case. :param element: element to be aliased. Is normally a mapped class, but for convenience can also be a :class:`_expression.FromClause` element. :param alias: Optional selectable unit to map the element to. This is usually used to link the object to a subquery, and should be an aliased select construct as one would produce from the :meth:`_query.Query.subquery` method or the :meth:`_expression.Select.alias` methods of the :func:`_expression.select` construct. :param name: optional string name to use for the alias, if not specified by the ``alias`` parameter. The name, among other things, forms the attribute name that will be accessible via tuples returned by a :class:`_query.Query` object. :param flat: Boolean, will be passed through to the :meth:`_expression.FromClause.alias` call so that aliases of :class:`_expression.Join` objects don't include an enclosing SELECT. This can lead to more efficient queries in many circumstances. A JOIN against a nested JOIN will be rewritten as a JOIN against an aliased SELECT subquery on backends that don't support this syntax. .. seealso:: :meth:`_expression.Join.alias` :param adapt_on_names: if True, more liberal "matching" will be used when mapping the mapped columns of the ORM entity to those of the given selectable - a name-based match will be performed if the given selectable doesn't otherwise have a column that corresponds to one on the entity. The use case for this is when associating an entity with some derived selectable such as one that uses aggregate functions:: class UnitPrice(Base): __tablename__ = 'unit_price' ... unit_id = Column(Integer) price = Column(Numeric) aggregated_unit_price = Session.query( func.sum(UnitPrice.price).label('price') ).group_by(UnitPrice.unit_id).subquery() aggregated_unit_price = aliased(UnitPrice, alias=aggregated_unit_price, adapt_on_names=True) Above, functions on ``aggregated_unit_price`` which refer to ``.price`` will return the ``func.sum(UnitPrice.price).label('price')`` column, as it is matched on the name "price". Ordinarily, the "price" function wouldn't have any "column correspondence" to the actual ``UnitPrice.price`` column as it is not a proxy of the original. z+adapt_on_names only applies to ORM elements©rÚ)rœrÚr�rà)r3rÚ FromClauser9r:rœrØ)Úelementrœr�rÚràs r0Úaliasedr;ïsx€õn�'�:Ô0Ñ1Ô1ð  Ø ð ÝÔ&Ø=ñôð ð�}Š}˜T¨ˆ}Ñ-Ô-Ð-åØ ØØØØ)ð  ñ ô ð r2c ón—t|¦«} |rZ|j| usJ‚tj|¦«}t d„|jD¦«¦«} || kr|S| | ¦«}|  |||¬¦«\} }|s|r| |¬¦«}t||| ||| ¬¦«S)aô Produce an :class:`.AliasedClass` construct which specifies columns for descendant mappers of the given base. Using this method will ensure that each descendant mapper's tables are included in the FROM clause, and will allow filter() criterion to be used against those tables. The resulting instances will also have those columns already loaded so that no "post fetch" of those columns will be required. .. seealso:: :ref:`with_polymorphic` - full discussion of :func:`_orm.with_polymorphic`. :param base: Base class to be aliased. :param classes: a single class or mapper, or list of class/mappers, which inherit from the base class. Alternatively, it may also be the string ``'*'``, in which case all descending mapped classes will be added to the FROM clause. :param aliased: when True, the selectable will be wrapped in an alias, that is ``(SELECT * FROM ) AS anon_1``. This can be important when using the with_polymorphic() to create the target of a JOIN on a backend that does not support parenthesized joins, such as SQLite and older versions of MySQL. However if the :paramref:`.with_polymorphic.selectable` parameter is in use with an existing :class:`_expression.Alias` construct, then you should not set this flag. :param flat: Boolean, will be passed through to the :meth:`_expression.FromClause.alias` call so that aliases of :class:`_expression.Join` objects don't include an enclosing SELECT. This can lead to more efficient queries in many circumstances. A JOIN against a nested JOIN will be rewritten as a JOIN against an aliased SELECT subquery on backends that don't support this syntax. Setting ``flat`` to ``True`` implies the ``aliased`` flag is also ``True``. .. versionadded:: 0.9.0 .. seealso:: :meth:`_expression.Join.alias` :param selectable: a table or select() statement that will be used in place of the generated FROM clause. This argument is required if any of the desired classes use concrete table inheritance, since SQLAlchemy currently cannot generate UNIONs among tables automatically. If used, the ``selectable`` argument must represent the full set of tables and columns mapped by every mapped class. Otherwise, the unaccounted mapped columns will result in their table being appended directly to the FROM clause which will usually lead to incorrect results. :param polymorphic_on: a column to be used as the "discriminator" column for the given selectable. If not given, the polymorphic_on attribute of the base classes' mapper will be used, if any. This is useful for mappings that don't have polymorphic loading behavior by default. :param innerjoin: if True, an INNER JOIN will be used. This should only be specified if querying for one specific subtype only có—g|] }|j‘Œ Sr+)r½r*s r0r1z$with_polymorphic..¨s€Ð JÐ JÐ J˜2ˆRŒYÐ JÐ JÐ Jr2)Ú innerjoinr8)rÝrárãrä) rr¾rÚto_setr6rÝÚunionÚ_with_polymorphic_argsrœrØ) ÚbaseÚclassesrÈrÚrÞr;r>rÚ_existing_aliasÚprimary_mapperÚ new_classesÚmapperss r0Úwith_polymorphicrHVsý€õZ& dÑ+Ô+€NØð 1ØÔ%¨Ð7Ð7Ð7Ð7Ý”+˜gÑ&Ô&ˆÝØ JÐ J Ô!IÐ JÑ JÔ Jñ ô ˆ ð �kÒ !Ð !Ø"Ð "à—m’m KÑ0Ô0ˆGØ(×?Ò?Ø� yð@ñôÑ€GˆZðð1�$ð1Ø×%Ò%¨4Ð%Ñ0Ô0ˆ Ý Ø ØØ!(Ø'5Ø(Ø"+˜mð  ñ ô ðr2có2—tj|ddi|¦«S)z®Deep copy the given ClauseElement, annotating each element with the "_orm_adapt" flag. Elements within the exclude collection will be cloned but not annotated. Ú _orm_adaptT)r¢Ú_deep_annotate)r:Úexcludes r0Ú _orm_annotaterM½s€õ Ô " 7¨\¸4Ð,@À'Ñ JÔ JÐJr2có.—tj|d¬¦«S)zÔRemove annotations that link a column to a particular mapping. Note this doesn't affect "remote" and "foreign" annotations passed by the :func:`_orm.foreign` and :func:`_orm.remote` annotators. )rJr)rF©r¢Ú_deep_deannotate©r:s r0Ú_orm_deannotaterRÇs$€õ Ô $ØÐ6ð ñ ô ðr2có*—tj|¦«Sr^rOrQs r0Ú_orm_full_deannotaterTÕs€Ý Ô $ WÑ -Ô -Ð-r2cóZ—eZdZdZejjZ dd„Zd„Z d d„Z d d„Z dS) Ú_ORMJoinz/Extend Join to support ORM constructs as input.NFcóü—tj|¦«}t|d|¦«} tj|¦«} | j} | |_||_||_t|tj ¦«rt| j |¦«}t|tj ¦«r!|j  ¦«} |j} n&t|t ¦«r|} | jj} nd} | r‹t%j| |j¦«r| }n|j}|  || dd| jd¬¦«\}}}}}}|�5|rt-j|||¦«}|}nt-j||||¦«}|}n|}||_t2j ||||||¦«| s]t| dd¦«rN| jjrD| jj}|�8| jr| j  |¦«}|j!|z|_!dSdSdSdSdS)NÚ_joined_from_infoT)Úsource_selectableÚdest_selectableÚsource_polymorphicÚdest_polymorphicÚof_type_mapperÚalias_secondaryr¾)"rrÇrìrÈrXÚ _left_memoÚ _right_memor3rr4rÎrÚQueryableAttributeÚ comparatorÚ_source_selectabler1rÚparentr¢Úclause_is_presentÚ _create_joinsr¾rr;Ú_target_adapterrÚJoinrÌÚsingleÚ_single_table_criterionrÉrrr )rGÚleftÚrightr ÚisouterÚfullr_r`Ú left_infoÚ left_orm_infoÚ right_infoÚadapt_toÚ on_selectableÚpropÚ adapt_fromÚpjÚsjÚsourceÚdestÚ secondaryÚtarget_adapterÚ single_crits r0rÌz_ORMJoin.__init__ÞsY€õÔ& tÑ,Ô,ˆ Ý Ð&9¸9ÑEÔEˆ åÔ'¨Ñ.Ô.ˆ ØÔ(ˆà!+ˆÔà$ˆŒØ&ˆÔå �h¥Ô 1Ñ 2Ô 2ð ?ݘ}Ô3°XÑ>Ô>ˆHå �h¥ Ô =Ñ >Ô >ð Ø$Ô/×BÒBÑDÔDˆMØÔ$ˆDˆDÝ ˜¥.Ñ 1Ô 1ð ØˆDØ œKÔ2ˆMˆMàˆDà ð 2ÝÔ)¨-¸Ô9MÑNÔNð 2Ø*� � à&Ô1� ð×"Ò"Ø",Ø (Ø#'Ø!%Ø)Ô0Ø $ð #ñôñ ØØØØØØðˆ~Øð"åœH Y°°rÑ:Ô:�EØ!�H�Håœ8 D¨)°R¸ÑAÔA�DØ!�H�Hà�Ø#1ˆDÔ åŒ× Ò   t¨U°H¸gÀtÑLÔLÐLðð <å˜  H¨dÑ3Ô3ð <ðÔ!Ô(ð <ð%Ô+ÔCˆKØÐ&ØÔ.ðLØ",Ô"5×">Ò">¸{Ñ"KÔ"K�KØ $¤ ° Ñ ;�” � � ð <ð <ð <ð <ð <ð <ð'Ð&r2cóH—|}t|tj¦«r!|j}t|tj¦«°!|j|usJ‚t |j|j|j|j|j|j¬¦«}t ||j|j|j|j ¬¦«S)zlSplice a join into the center. Given join(a, b) and join(b, c), return join(a, b).join(c) )rmr_r`)rmr`) r3rrhrkrlrVr rmr_r`)rGÚotherÚleftmostrks r0Ú_splice_into_centerz_ORMJoin._splice_into_center1s³€ð ˆÝ˜¥3¤8Ñ,Ô,ð %Ø”}ˆHõ˜¥3¤8Ñ,Ô,ð %ðŒz˜XÐ%Ð%Ð%Ð%åØ ŒIØ ŒJØ ŒMØ”LØ”ØÔ(ð  ñ ô ˆõØ Ø ŒKØ ŒNØ”MØÔ)ð  ñ ô ð r2có*—t|||||¬¦«S)N)rnrm©rV)rGrlr rmrnÚ join_to_lefts r0r;z _ORMJoin.joinNs€õ˜˜e X°DÀ'ÐJÑJÔJÐJr2có*—t|||d|¬¦«S)NT)rmrnr‚)rGrlr rnrƒs r0Ú outerjoinz_ORMJoin.outerjoinXs€Ý˜˜e X°tÀ$ÐGÑGÔGÐGr2)NFFNN©NFFN©NFN) rTrUrVrWrrhÚ__visit_name__rÌr€r;r…r+r2r0rVrVÙsž€€€€€Ø9Ð9à”_Ô3€Nð ØØ ØØðQ<ðQ<ðQ<ðQ<ðf ð ð ð@ØØ Øð KðKðKðKðHðHðHðHðHðHr2rVcó(—t|||||¦«S)aProduce an inner join between left and right clauses. :func:`_orm.join` is an extension to the core join interface provided by :func:`_expression.join()`, where the left and right selectables may be not only core selectable objects such as :class:`_schema.Table`, but also mapped classes or :class:`.AliasedClass` instances. The "on" clause can be a SQL expression, or an attribute or string name referencing a configured :func:`_orm.relationship`. :func:`_orm.join` is not commonly needed in modern usage, as its functionality is encapsulated within that of the :meth:`_query.Query.join` method, which features a significant amount of automation beyond :func:`_orm.join` by itself. Explicit usage of :func:`_orm.join` with :class:`_query.Query` involves usage of the :meth:`_query.Query.select_from` method, as in:: from sqlalchemy.orm import join session.query(User).\ select_from(join(User, Address, User.addresses)).\ filter(Address.email_address=='foo@bar.com') In modern SQLAlchemy the above join can be written more succinctly as:: session.query(User).\ join(User.addresses).\ filter(Address.email_address=='foo@bar.com') See :meth:`_query.Query.join` for information on modern usage of ORM level joins. .. deprecated:: 0.8 the ``join_to_left`` parameter is deprecated, and will be removed in a future release. The parameter has no effect. r‚)rkrlr rmrnrƒs r0r;r;\s€õT �D˜% ¨7°DÑ 9Ô 9Ð9r2có(—t|||d|¦«S)aProduce a left outer join between left and right clauses. This is the "outer join" version of the :func:`_orm.join` function, featuring the same behavior except that an OUTER JOIN is generated. See that function's documentation for other usage details. Tr‚)rkrlr rnrƒs r0r…r…‰s€õ �D˜% ¨4°Ñ 6Ô 6Ð6r2cóú—t|tj¦«r*t|¦«}t |j|¦«j}n!t|tj¦«r|j}|  ||¬¦«S)a®Create filtering criterion that relates this query's primary entity to the given related instance, using established :func:`_orm.relationship()` configuration. The SQL rendered is the same as that rendered when a lazy loader would fire off from the given parent on that attribute, meaning that the appropriate state is taken from the parent object in Python without the need to render joins to the parent table in the rendered statement. :param instance: An instance which has some :func:`_orm.relationship`. :param property: String property name, or class-bound attribute, which indicates what relationship from the instance should be used to reconcile the parent/child relationship. :param from_entity: Entity in which to consider as the left side. This defaults to the "zero" entity of the :class:`_query.Query` itself. .. versionadded:: 1.2 )Ú from_entity) r3rr4r rìr½r1rraÚ _with_parent)r²rtrŒr¾s r0Ú with_parentrŽ”sq€õ6�$�Ô)Ñ*Ô*ðݘxÑ(Ô(ˆÝ�v”} dÑ+Ô+Ô4ˆˆÝ �D�*Ô7Ñ 8Ô 8ðØŒ}ˆà × Ò ˜X°;Ð Ñ ?Ô ?Ð?r2có8—tj|¦«}|jS)zÖReturn True if the given object has a database identity. This typically corresponds to the object being in either the persistent or detached state. .. seealso:: :func:`.was_deleted` )rÚinstance_stateÚ has_identity©Úobject_ras r0r‘r‘¸s€õ Ô % gÑ .Ô .€EØ Ô Ðr2có8—tj|¦«}|jS)zßReturn True if the given object was deleted within a session flush. This is regardless of whether or not the object is persistent or detached. .. seealso:: :attr:`.InstanceState.was_deleted` )rr�Ú was_deletedr’s r0r•r•Ès€õ Ô % gÑ .Ô .€EØ Ô Ðr2cóÖ—|jr3|jr*| ¦«| ¦«urdSdS|jr|jr ||jvS||uS| |¦«S)z¬determine if 'given' corresponds to 'entity', in terms of an entity passed to Query that would match the same entity being referred to elsewhere in the query. TF)rÉrrrÝÚ common_parent©ÚgivenrÎs r0Ú_entity_corresponds_toršÙs‰€ð Ôð #Ø Ô !ð Ø×!Ò!Ñ#Ô# u×'8Ò'8Ñ':Ô':Ð:Ð:Ø�t؈uØ Ô ð#Ø Ô !ð #ؘUÔ;Ð;Ð ;à˜U�?Ð "à × Ò  Ñ &Ô &Ð&r2cóª—|jr|jo|j o ||up||jvS|js| |j¦«S|jo||jvS)adetermine if 'given' corresponds to 'entity', in terms of a path of loader options where a mapped attribute is taken to be a member of a parent entity. e.g.:: someoption(A).someoption(A.b) # -> fn(A, A) -> True someoption(A).someoption(C.d) # -> fn(A, C) -> False a1 = aliased(A) someoption(a1).someoption(A.b) # -> fn(a1, A) -> False someoption(a1).someoption(a1.b) # -> fn(a1, a1) -> True wp = with_polymorphic(A, [A1, A2]) someoption(wp).someoption(A1.foo) # -> fn(wp, A1) -> False someoption(wp).someoption(wp.A1.foo) # -> fn(wp, wp.A1) -> True )rÉrrr—r¾rÝr˜s r0Ú$_entity_corresponds_to_use_path_implrœísƒ€ð( Ôð  à Ô #ð PØÔ+Ð+ð Pà˜&�ÐN E¨VÔ-NÐ$Nð ð Ô $ð Ø×"Ò" 6¤=Ñ1Ô1Ð1ð Ô #ð 9ؘÔ8Ð8ð r2có —|jr#||jvp|j |¦«S|jr ||jvS| |¦«S)zedetermine if 'given' "is a" mapper, in terms of the given would load rows of type 'mapper'. )rÉrÝr¾rÕ)r™r¾s r0Ú _entity_isaržsh€ð  Ôð!ؘÔ7Ð7ð ¸5¼<×;KÒ;KØ ñ< ô< ð ð Ô 'ð!ؘÔ7Ð7Ð7à�yŠy˜Ñ Ô Ð r2có|—ddlm}m}m}m}ddlm}ddlm}|x|_ x|_ x|_ x|_ |_ dS)aZUse random-ordering sets within the unit of work in order to detect unit of work sorting issues. This is a utility function that can be used to help reproduce inconsistent unit of work sorting issues. For example, if two kinds of objects A and B are being inserted, and B has a foreign key reference to A - the A must be inserted first. However, if there is no relationship between A and B, the unit of work won't know to perform this sorting, and an operation may or may not fail, depending on how the ordering works out. Since Python sets and dictionaries have non-deterministic ordering, such an issue may occur on some runs and not on others, and in practice it tends to have a great dependence on the state of the interpreter. This leads to so-called "heisenbugs" where changing entirely irrelevant aspects of the test program still cause the failure behavior to change. By calling ``randomize_unitofwork()`` when a script first runs, the ordering of a key series of sets within the unit of work implementation are randomized, so that the script can be minimized down to the fundamental mapping and operation that's failing, while still reproducing the issue on at least some runs. This utility is also available when running the test suite via the ``--reversetop`` flag. r)Ú unitofworkÚsessionr¾Ú dependency)Ú topological)Ú RandomSetN) Úsqlalchemy.ormr r¡r¾r¢Úsqlalchemy.utilr£Úsqlalchemy.testing.utilr¤r6)r r¡r¾r¢r£r¤s r0Úrandomize_unitofworkr¨s�€ð6GÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFÐFØ+Ð+Ð+Ð+Ð+Ð+Ø1Ð1Ð1Ð1Ð1Ð1ð5>ð>€K„Oð>ØŒð>àŒ ð>à”j :¤> > >r2)r‡T)NNFF)FFNFFFNr^r†r‡);rQr“rürPrrBrrrrr r r r r rrrÚ interfacesrrÚ path_registryrrrr9rrrrr¢rArXr$r†r¬r¿rËrÁÚobjectrØrÜÚ _inspectsr;rHrMrRrTrhrVr;r…rŽr‘r•ršrœržr¨r+r2r0úr­sŒðð € € € Ø € € € Ø€€€àÐÐÐÐÐØ"Ð"Ð"Ð"Ð"Ð"ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ Ð Ð Ð Ð Ð ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ%Ð%Ð%Ð%Ð%Ð%Ø!Ð!Ð!Ð!Ð!Ð!ØÐÐÐÐÐØ&Ð&Ð&Ð&Ð&Ð&Ø&Ð&Ð&Ð&Ð&Ð&Ø'Ð'Ð'Ð'Ð'Ð'ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ"Ð"Ð"Ð"Ð"Ð"ðˆyð ñ ô € ð?ð?ð?ð?ð?�Yñ?ô?ð?ðD?Dð?Dð?DðF=AðF3ðF3ðF3ðF3ðRe;ðe;ðe;ðP$5ð$5ð$5ð$5ð$5�Ô'ñ$5ô$5ð$5ðNF'ðF'ðF'ðF'ðF'�6ñF'ôF'ðF'ðRO<ðO<ðO<ðO<ðO<�.ñO<ôO<ðO<ðd#Ѐ Ô�\Ñ"Ô"Ð#FÐ#FÑGÔGÐGØ!Ѐ Ô�[Ñ!Ô!Ð"7Ð"7Ñ8Ô8Ð8ðd ðd ðd ðd ðTØ ØØ ØØØðdðdðdðdðNKðKðKðKð ð ð ð.ð.ð.ð@Hð@Hð@Hð@Hð@HˆzŒñ@Hô@Hð@HðHIMð*:ð*:ð*:ð*:ðZ7ð7ð7ð7ð!@ð!@ð!@ð!@ðH ð ð ð ððð"'ð'ð'ð(  ð  ð  ðF !ð !ð !ð!>ð!>ð!>ð!>ð!>r2