� g\�g�J��t�dZddlmZddlZddlZddlZddlZddlmZddl Z ddl m Z ddl m Z ddl m Z ddl m Z dd l mZdd l mZdd l mZdd l mZdd l mZddl mZddl mZddl mZddl mZddl mZddl mZddlZddlmZddlmZddlmZddlm Z ddlm!Z!ddlm"Z"ddlm#Z#ddlm$Z$ddlm%Z%ddl&m'Z'ddl&m(Z(d d!lm)Z)d d"lm*Z*d d#lm+Z+d d$lm,Z,d d%l-m.Z.d d&l-m/Z/d d'l-m0Z0d d(l-m1Z1d d$l-m,Z2d d)l3m4Z4d d*l5m6Z6d d+l7m8Z8d d,l7m9Z9d d-l7m:Z:d d.l;m<Z<d d/l=m>Z>d d0l=m?Z?e jr�dd1l@mAZAdd2lmBZBdd3lmCZCdd4lmDZDdd5lmEZEdd6lmFZFdd7lmGZGdd8lmHZHdd9lmIZIdd:lmJZJdd;lmKZKdd<lmLZLdd=lMmNZNdd>lOmPZPd d?l)mQZQd d@l+mRZRd dAl+mSZSd dBl-mTZTd dCl7mUZUd dDl7mVZVd dEl7mWZWd dFlXmYZYd dGlXmZZZd dHl;m[Z[d dIl\m]Z]d dJl^m_Z_d dKl^m`Z`d dLl^maZaejbdMejcejdz��Zeefe!��\ZgZhZiZjZkGdN�dOe#��ZlGdP�dQel��ZmGdR�dSe%��Znenel_odS)TaDefault implementations of per-dialect sqlalchemy.engine classes. These are semi-private implementation classes which are only of importance to database dialect authors; dialects will usually use the classes here as the base class for their own corresponding classes. �)� annotationsN)� perf_counter)�Any)�Callable)�cast)�Dict)�List)�Mapping)�MutableMapping)�MutableSequence)�Optional)�Sequence)�Set)�Tuple)�Type)� TYPE_CHECKING)�Union�)�characteristics)�cursor)� interfaces)� Connection)� CacheStats)� DBAPICursor)�Dialect)� ExecuteStyle)�ExecutionContext)� ObjectKind)� ObjectScope�)�event)�exc)�pool)�util)�compiler)�dml)� expression)�type_api)� is_tuple_type)�_NoArg)� DDLCompiler)�InsertmanyvaluesSentinelOpts)� SQLCompiler)� quoted_name)�Final)�Literal)� ModuleType)�Engine)�ResultFetchStrategy)�_CoreMultiExecuteParams)�_CoreSingleExecuteParams)�_DBAPICursorDescription)�_DBAPIMultiExecuteParams)�_ExecuteOptions)�_MutableCoreSingleExecuteParams)� _ParamStyle)�DBAPIConnection)�IsolationLevel)�Row)�URL)�_ListenerFnType)�Pool)�PoolProxiedConnection)� Executable)�Compiled)�Linting)�ResultColumnsEntry)�DMLState)� UpdateBase)� BindParameter)�Column)�_BindProcessorType)�_ResultProcessorType)� TypeEnginez \s*SELECTc �<�eZdZUdZejZejZej Z ej Z dZ dZdZdZdZdZejjZdZded<dZded<dZeZdZdZdZdZ dZ!dZ"dZ#dZ$dZ%dZ&dZ'dZ(dZ)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1dZ2e3j4e5j6��e5j7��d ���Z8e3j4e3j9e3j:d ��e3j:d ��e3j9e3j9e3j9e3j;d ���Z<d ed <dZ=dZ>dZ?dZ@ded<dZAded<dZBded<dZCded<dZDdZEiZFded<dZGdZH dZI dZJ dZK dZLdZMded<dZNded<eOjPZQded<dZRd ed!<d"ZSdZTdZUdZVdZWdZXdZYded#<dZZdZ[dZ\d$Z]e3j^d%d&�'��ddddddde_j`deaejb��df d�d9���Zcede3jed:d;��d<�����Zfe3jgd=���Zhe3jgd>���ZidZjdZke3jgd�dA���Zle3jgdB���ZmdC�Zne3jgdD���Zoe3jgdE���ZpeddF���ZqeddG���Zresd�dK���Ztd�dL�ZuesdM���Zvd�dO�ZwdP�ZxdQ�ZydR�ZzdS�Z{dT�Z|d�dU�Z}d�d[�Z~d\�Zd]�Z�d^�Z�d�dc�Z�d�dd�Z�de�Z�df�Z�dg�Z�dh�Z�di�Z�dj�Z�dk�Z�e3jgdl���Z�d�do�Z�d�dp�Z�dq�Z�dr�Z�ds�Z�dt�Z�du�Z�d�dv�Z�d�dw�Z�d�dx�Z�dy�Z�e3j�dz���Z�d{�Z�d|�Z�d}�Z�d~�Z�d�Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�dS)��DefaultDialectz!Default implementation of DialectTFNzOptional[Set[Any]]�include_set_input_sizes�exclude_set_input_sizesr)�isolation_level� logging_token�debug)� pool_timeout�echo� echo_pool� pool_recycle� pool_size� max_overflow�future�Mapping[str, Any]�engine_config_types�defaulti'� Optional[int]�#_user_defined_max_identifier_lengthz Optional[str]rQ�max_index_name_length�max_constraint_name_lengthz<MutableMapping[Type[TypeEngine[Any]], Type[TypeEngine[Any]]]�colspecs�named�DEFAULT�bool�use_insertmanyvalues�!use_insertmanyvalues_wo_returningr,�"insertmanyvalues_implicit_sentineli��int�insertmanyvalues_page_sizei��default_schema_namezutf-8)�1.4aThe :paramref:`_sa.create_engine.empty_in_strategy` keyword is deprecated, and no longer has any effect. All IN expressions are now rendered using the "expanding parameter" strategy which renders a set of boundexpressions, or an "empty set" SELECT, at statement executiontime.)rlz�The :paramref:`_sa.create_engine.server_side_cursors` parameter is deprecated and will be removed in a future release. Please use the :paramref:`_engine.Connection.execution_options.stream_results` parameter.)�empty_in_strategy�server_side_cursors� paramstyle�Optional[_ParamStyle]�Optional[IsolationLevel]�dbapi�Optional[ModuleType]�implicit_returning� Literal[True]�supports_native_boolean�Optional[bool]�max_identifier_length� label_length�Union[_NoArg, int]�compiler_lintingrDrn�kwargsrc  � �| r%|jstjd|z���d|_t |dd��r+t jdd��tjj |_ d|_ d|_ ||_ |�||_n%|j �|j j|_n |j|_|jdv|_ |�|��|_||_t |dd��} | �+t't(t*j|j��}n|j}||��x|_|_|�||_||_|jr |j|_||_| |_| �| |_|t@j!ur ||_"dSdS) Nz/Dialect %s does not support server side cursorsT�use_setinputsizesFzoThe dialect-level use_setinputsizes attribute is deprecated. Please use bind_typing = BindTyping.SETINPUTSIZES�2.0)�qmark�format�numeric�numeric_dollar� type_compiler)#�supports_server_side_cursorsr"� ArgumentErrorrn�getattrr$�warn_deprecatedr� BindTyping� SETINPUTSIZES� bind_typing� positional�_ischemarrro�default_paramstyle�preparer�identifier_preparer�_on_connect_isolation_levelrrr%�GenericTypeCompilerr��type_compiler_cls�type_compiler_instancervr_rxryr{rfr*�NO_ARGrj)�selfrorQrrrtrvrxryrjrfr{rnr|�legacy_tt_callable� tt_callables �i/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sqlalchemy/engine/default.py�__init__zDefaultDialect.__init__s���H � 0��4� 0��'�E��L����,0��(� �4�,�e� 4� 4� C� � �9��  � � � *�4�B�D� ������ ��� � � !�(�D�O�O� �Z� #�"�j�3�D�O�O�"�5�D�O��/�. � ��� $(�=�=��#6�#6�� �+:��(�$�T�?�D�A�A�� � )���X�1�2��"���K�K� �0�K�;F�;�t�;L�;L�L��#�d�&8� "� .�+B�D� (�3H��0� � 3� ��8� � &�)��� 0��� � +�(<�D� %� %�V�]� :� :�.H�D� +� +� +� ;� :�rz]full_returning is deprecated, please use insert_returning, update_returning, delete_returningc�,�|jo |jo|jS�N)�insert_returning�update_returning�delete_returning�r�s r��full_returningzDefaultDialect.full_returningus%�� � !� &��%� &��%� r�c��|jo|jS)aDefault implementation for insert_executemany_returning, if not otherwise overridden by the specific dialect. The default dialect determines "insert_executemany_returning" is available if the dialect in use has opted into using the "use_insertmanyvalues" feature. If they haven't opted into that, then this attribute is False, unless the dialect in question overrides this and provides some other implementation (such as the Oracle Database dialects). �r�rfr�s r��insert_executemany_returningz+DefaultDialect.insert_executemany_returning�s���$�B��)B�Br�c��|jo|jS)a�Default implementation for insert_executemany_returning_deterministic_order, if not otherwise overridden by the specific dialect. The default dialect determines "insert_executemany_returning" can have deterministic order only if the dialect in use has opted into using the "use_insertmanyvalues" feature, which implements deterministic ordering using client side sentinel columns only by default. The "insertmanyvalues" feature also features alternate forms that can use server-generated PK values as "sentinels", but those are only used if the :attr:`.Dialect.insertmanyvalues_implicit_sentinel` bitflag enables those alternate SQL forms, which are disabled by default. If the dialect in use hasn't opted into that, then this attribute is False, unless the dialect in question overrides this and provides some other implementation (such as the Oracle Database dialects). r�r�s r��4insert_executemany_returning_sort_by_parameter_orderzCDefaultDialect.insert_executemany_returning_sort_by_parameter_order�s��*�$�B��)B�Br��returnr1c�N�|j�tjd|�d����|jS)N�Dialect z\ does not have a Python DBAPI established and cannot be used for actual database interaction)rrr"�InvalidRequestErrorr�s r�� loaded_dbapizDefaultDialect.loaded_dbapi�sC�� �:� ��)�E�4�E�E�E��� ��z�r�c�2�|jtjjuSr�)r�rr�� RENDER_CASTSr�s r��_bind_typing_render_castsz(DefaultDialect._bind_typing_render_casts�s����:�#8�#E�E�Er�c��t|t��s-tjdt�dt |���d����dS)Nz7The argument passed to Dialect.has_table() should be a z, got z�. Additionally, the Dialect.has_table() method is for internal dialect use only; please use ``inspect(some_engine).has_table(<tablename>>)`` for public API use.)� isinstancerr"r��type)r��args r��_ensure_has_table_connectionz+DefaultDialect._ensure_has_table_connection�sQ���#�z�*�*� ��#�#�*4���T�#�Y�Y�Y�Y� @��� � � r�c��|jj�dd��}|�'tjd|j�d|j�d�d���t|��S)N�supports_statement_cacher��:a� will not make use of SQL compilation caching as it does not set the 'supports_statement_cache' attribute to ``True``. This can have significant performance implications including some performance degradations in comparison to prior SQLAlchemy versions. Dialect maintainers should seek to set this attribute to True after appropriate development and testing for SQLAlchemy 1.4 caching support. Alternatively, this attribute may be set to False which will disable this warning.�cprf)�code)� __class__�__dict__�getr$�warn�name�driverre)r��sscs r��_supports_statement_cachez(DefaultDialect._supports_statement_cache�sh���n�%�)�)�*D�d�K�K�� �;� �I�I�#�i�i�i����� 6�� � � � ��C�y�y�r�c�(�tj��Sr�)�weakref�WeakKeyDictionaryr�s r�� _type_memoszDefaultDialect._type_memos�s���(�*�*�*r�c�&�|jdz|jzS)N�+)r�r�r�s r��dialect_descriptionz"DefaultDialect.dialect_description�s���y�3����,�,r�c��|jS)z�True if this dialect supports sane rowcount even if RETURNING is in use. For dialects that don't support RETURNING, this is synonymous with ``supports_sane_rowcount``. )�supports_sane_rowcountr�s r�� supports_sane_rowcount_returningz/DefaultDialect.supports_sane_rowcount_returning�s ���*�*r��urlr>� Type[Pool]c�8�t|dtj��S)N� poolclass)r�r#� QueuePool)�clsr�s r��get_pool_classzDefaultDialect.get_pool_class�s���s�K���8�8�8r�c�,�|�|��Sr�)r�)r�r�s r��get_dialect_pool_classz%DefaultDialect.get_dialect_pool_class�s���"�"�3�'�'�'r�c��d�|j�d��dd���} t|dz��dS#t$rYdSwxYw)N�.r�����z .provision)�join� __module__�split� __import__� ImportError)r��packages r��load_provisioningz DefaultDialect.load_provisioning�sl���(�(�3�>�/�/��4�4�Q�r�T�:�;�;�� � �w��-� .� .� .� .� .��� � � � �D�D� ���s�A � A�A�Optional[_ListenerFnType]c�$���j��fd�}|SdS)Nc�>����|�j��dSr�)�_assert_and_set_isolation_levelr�)� dbapi_conn�conn_recr�s �r��builtin_connectz:DefaultDialect._builtin_onconnect.<locals>.builtin_connect�s-����4�4��� @�����r�)r�)r�r�s` r��_builtin_onconnectz!DefaultDialect._builtin_onconnect�s2��� � +� 7� � � � � � #� "��4r�c�� |�|��|_n#t$r d|_YnwxYw |�|��|_n#t$r d|_YnwxYw |�|jj��|_n#t$r d|_YnwxYw|j s|� |��}|r||_ |j r3|j |j kr%tjd|j |j fz���dSdS)NzQLabel length of %d is greater than this dialect's maximum identifier length of %d)�_get_server_version_info�server_version_info�NotImplementedError�_get_default_schema_namerk�get_default_isolation_level� connection�dbapi_connection�default_isolation_levelr_�_check_max_identifier_lengthrxryr"r�)r�r��max_ident_lengths r�� initializezDefaultDialect.initializes�� ,�'+�'D�'D��(�(�D� $� $��#� ,� ,� ,�'+�D� $� $� $� ,���� ,�'+�'D�'D��(�(�D� $� $��#� ,� ,� ,�'+�D� $� $� $� ,���� 0�+/�+K�+K��%�6�,�,�D� (� (��#� 0� 0� 0�+/�D� (� (� (� 0�����7� >�#�@�@��L�L� �� >�-=��*� � � ��!�D�$>�>�>��#�3��$�d�&@�A�B��� �  � �>�>s/��1�1�A�A$�#A$�($B � B!� B!c��dSr��r�s r�� on_connectzDefaultDialect.on_connect*s���tr�c��dS)z�Perform a connection / server version specific check to determine the max_identifier_length. If the dialect's class level max_identifier_length should be used, can return None. .. versionadded:: 1.3.9 Nr��r�r�s r�r�z+DefaultDialect._check_max_identifier_length.s ���tr�c�,�|�|��S)a�Given a DBAPI connection, return its isolation level, or a default isolation level if one cannot be retrieved. May be overridden by subclasses in order to provide a "fallback" isolation level for databases that cannot reliably retrieve the actual isolation level. By default, calls the :meth:`_engine.Interfaces.get_isolation_level` method, propagating any exceptions raised. .. versionadded:: 1.3.22 )�get_isolation_level�r�r�s r�r�z*DefaultDialect.get_default_isolation_level:s���'�'� �3�3�3r�c�6�tj||j��S)a)Provide a database-specific :class:`.TypeEngine` object, given the generic object which comes from the types module. This method looks for a dictionary called ``colspecs`` as a class or instance-level variable, and passes on to :func:`_types.adapt_type`. )r(� adapt_typerb)r��typeobjs r��type_descriptorzDefaultDialect.type_descriptorJs���"�7�D�M�:�:�:r�c �r�|j||fd|i|��sdS|j||fd|i|��D]}|d|krdS�dS)N�schemaFr�T)� has_table� get_indexes)r�r�� table_name� index_namer�kw�idxs r�� has_indexzDefaultDialect.has_indexUs����t�~�j�*�J�J�V�J�r�J�J� ��5�#�4�#� � � � �+1� �57� � � � �C��6�{�j�(�(��t�t�)��5r�r�r� schema_name�strrc �"�||j|fi|��vSr�)�get_schema_names)r�r�rrs r�� has_schemazDefaultDialect.has_schema`s%���3�d�3�J�E�E�"�E�E�E�Er�c�r�t|��|jkrtjd||jfz���dS)Nz7Identifier '%s' exceeds maximum length of %d characters)�lenrxr"�IdentifierError)r��idents r��validate_identifierz"DefaultDialect.validate_identifieresF�� �u�:�:��2� 2� 2��%�I��$�4�5�6��� � 3� 2r�c�&�|jj|i|��Sr�)r��connect)r��cargs�cparamss r�rzDefaultDialect.connectls��(�t� �(�%�;�7�;�;�;r�c�f�|���}|�|j��g|fSr�)�translate_connect_args�update�query)r�r��optss r��create_connect_argsz"DefaultDialect.create_connect_argsps1���)�)�+�+�� � � �C�I�����D�z�r��enginer2r�Nonec������t�j������}|rCtj�fd�|D�����t j|d����fd���}dSdS)Nc3�,�K�|]}|�|fV��dSr�r���.0r�rs �r�� <genexpr>z>DefaultDialect.set_engine_execution_options.<locals>.<genexpr>}�E�����D�D�'+��t�D�z�"�D�D�D�D�D�Dr��engine_connectc�4����|���dSr�)�_set_connection_characteristics)r�rr�s ��r��set_connection_characteristicszSDefaultDialect.set_engine_execution_options.<locals>.set_connection_characteristics�s*����4�4�������r�)�set�connection_characteristics� intersectionr$� immutabledictr!� listens_for)r�rr�supported_namesr'rs` ` @r��set_engine_execution_optionsz+DefaultDialect.set_engine_execution_optionsvs�������d�=�>�>�K�K� � � �� � �15�1C�D�D�D�D�/>�D�D�D�2�2�O�� �v�'7� 8� 8� � � � � �9� 8� � � � � r�c����t|j������}|r8tj�fd�|D����}|�||��dSdS)Nc3�,�K�|]}|�|fV��dSr�r�r s �r�r"zBDefaultDialect.set_connection_execution_options.<locals>.<genexpr>�r#r�)r(r)r*r$r+r&)r�r�rr-rs ` r�� set_connection_execution_optionsz/DefaultDialect.set_connection_execution_options�s�����d�=�>�>�K�K� � � �� � N�15�1C�D�D�D�D�/>�D�D�D�2�2�O� � 0� 0��_� M� M� M� M� M�  N� Nr�c����fd�|j��D��}|���rBd�|D��}|r4tjdd�d�|D����z���|jj}|D]\}}}|��|||���|jjj � tj �j |����dS)Nc�6��g|]\}}|�j||f��Sr�)r))r!r��valuer�s �r�� <listcomp>zBDefaultDialect._set_connection_characteristics.<locals>.<listcomp>�s<���! �! �! ���e��4�2�4�8�%� @�! �! �! r�c�,�g|]\}}}|j� ||f��Sr�)� transactional)r!r��obj�_s r�r5zBDefaultDialect._set_connection_characteristics.<locals>.<listcomp>�s;����� �D�#�q��$���s� ���r�z�This connection has already initialized a SQLAlchemy Transaction() object via begin() or autobegin; %s may not be altered unless rollback() or commit() is called first.�, c3� K�|] \}}|V�� dSr�r�)r!r�r8s r�r"zADefaultDialect._set_connection_characteristics.<locals>.<genexpr>�s&���� B� B�)�$��� B� B� B� B� B� Br�)�items�in_transactionr"r�r�r�r��set_connection_characteristic�_connection_record�finalize_callback�append� functools�partial�_reset_characteristics) r�r�r�characteristic_values� trans_objsr�r9�characteristicr4s ` r�r&z.DefaultDialect._set_connection_characteristics�s@���! �! �! �! �4��4�6�6�! �! �! �� � $� $� &� &� ���$9����J� � ��-�'��y�y� B� B�z� B� B� B�B�B� D����&�0�A��(=� � � $�A�~�u� � 8� 8��j�"2�E� � � � � ��0�B�I�I� � �d�9�?� K� K� � � � � r�c�V�|D]%}|j|}|�||���&dSr�)r)�reset_characteristic)r�rr��characteristic_namerGs r�rDz%DefaultDialect._reset_characteristics�sL��#2� H� H� �!�<�#��N� � /� /��6F� G� G� G� G�  H� Hr�c��dSr�r��r�r�s r��do_beginzDefaultDialect.do_begin���� �r�c�.�|���dSr�)�rollbackrLs r�� do_rollbackzDefaultDialect.do_rollback�s���!�!�#�#�#�#�#r�c�.�|���dSr�)�commitrLs r�� do_commitzDefaultDialect.do_commit�s�����!�!�!�!�!r�c�0�|�|��dSr�)�do_closerLs r�� do_terminatezDefaultDialect.do_terminate�s�� � � �&�'�'�'�'�'r�c�.�|���dSr�)�closerLs r�rVzDefaultDialect.do_close�s����� � � � � r�c�l�ttjd���|�����S)Nr��dialect)r r'�select�compiler�s r��_dialect_specific_select_onez+DefaultDialect._dialect_specific_select_one�s,���:�$�Q�'�'�/�/��/�=�=�>�>�>r�r�r;c�&� |�|��S#|jj$rj}|�||d��}|jr> t j|||dd���n##tj$r}|j }Yd}~nd}~wwxYw|rYd}~dS�d}~wwxYw)NFT)� is_disconnect�invalidate_pool_on_disconnect� is_pre_ping) �do_pingr��Errorra� _has_eventsr�$_handle_dbapi_exception_noconnectionr"�StatementError�connection_invalidated)r�r��errra�new_errs r��_do_ping_w_eventzDefaultDialect._do_ping_w_event�s��� ��<�<� 0�1�1� 1��� �&� � � � �.�.�s�4D�d�K�K�M��� C� C��C���&3�6;�$(� �������)�C�C�C�$+�$B�M�M�M�M�M�M�����C����� ��u�u�u�u�u������% ���sD��B�B �A�B �A?�.A:�5B �:A?�?B � B � Bc���d}|���} |�|j��|���n#|���wxYwdS)NT)r�executer_rY)r�r�rs r�rdzDefaultDialect.do_ping�sX����!�(�(�*�*�� � �N�N�4�<� =� =� =� �L�L�N�N�N�N��F�L�L�N�N�N�N�����ts �A�Ac�8�dtjdddz��zS)z�Create a random two-phase transaction ID. This id will be passed to do_begin_twophase(), do_rollback_twophase(), do_commit_twophase(). Its format is unspecified. z _sa_%032xrr �)�random�randintr�s r�� create_xidzDefaultDialect.create_xid�s���V�^�A�q�#�v�6�6�6�6r�c�T�|�tj|����dSr�)rnr'�SavepointClause�r�r�r�s r�� do_savepointzDefaultDialect.do_savepoint�s'�����:�5�d�;�;�<�<�<�<�<r�c�T�|�tj|����dSr�)rnr'�RollbackToSavepointClauservs r��do_rollback_to_savepointz'DefaultDialect.do_rollback_to_savepoint�s'�����:�?��E�E�F�F�F�F�Fr�c�T�|�tj|����dSr�)rnr'�ReleaseSavepointClauservs r��do_release_savepointz#DefaultDialect.do_release_savepoint�s'�����:�<�T�B�B�C�C�C�C�Cr�c #�r�����K�tt|��}tt|j��}d�d�d}|j} |j} | �J�t |j��} |j� d�j ��} |j r|j� di��} nd} | rg}||_ | j }nd}d}|�||| || || ��D�][}|V�| �rQ |�|��}nN#t $rA}|�|t%j|j��|jd|d���Yd}~nd}~wwxYw|�J�| j�r�|j�s�| jdk}| jr;|rJ�|�t5|t7jd��� ������| jsJ�| jsJ�| j�|sk|r0�fd �t?| j|j � d���D���n7| jd j!�"�|j dd���d}|r��fd �|D���n�r�fd �|D���n d�|D���tG���tG|j$��kr:tKj&dtG|j$���dtG����d���� �fd�|j'D��}n6#tP$r)}tKj&d|j)d �d���|�d}~wwxYw|�|����F|�|����]dS)Nr�Frj�schema_translate_mapT)� is_sub_execrr�)�keyc�X��g|]&\}}|j��|d����'S)r)r��_cached_result_processor)r!�col� cursor_descr�s �r�r5zDDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<listcomp>\sJ���8�8�8�%5�C��!$�� A� A�$(�+�a�.�!"�!"�8�8�8r�rc �r��i|]3}td�t|� d����D����|��4S)c3�:K�|]\}}|r ||��n|V��dSr�r�)r!�val�procs r�r"zNDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<dictcomp>.<genexpr>ssK����"�"�$-�C��/3�!;���c�����"�"�"�"�"�"r�N)�tuple�zip)r!�row�_composite_sentinel_proc�_nscs ��r�� <dictcomp>zDDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<dictcomp>rsp���,�,�,�!$� "�"�"�14�$'�����K�1I�2"�2"�"�"�"��� #� ,�,�,r�c�4��i|]}�|d��|��S�r�r�)r!r��_scalar_sentinel_procs �r�r�zDDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<dictcomp>|s8���,�,�,�DG�1�1�#�b�'�:�:�C�,�,�,r�c� �i|] }|d|�� Sr�r�)r!r�s r�r�zDDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<dictcomp>�s��+I�+I�+I�S�C��G�S�+I�+I�+Ir�zASentinel-keyed result set did not produce correct number of rows z ; produced zP. Please ensure the sentinel column is fully unique and populated in all cases.c� ��g|] }�|�� Sr�r�)r!� sentinel_keys�rows_by_sentinels �r�r5zDDefaultDialect._deliver_insertmanyvalues_batches.<locals>.<listcomp>�s.���(�(�(� -�-�]�;�(�(�(r�zACan't match sentinel values in result set to parameter sets; key aT was not found. There may be a mismatch between the datatype passed to the DBAPI driver vs. that which it returns in a result row. Ensure the given Python value matches the expected result type *exactly*, taking care to not rely upon implicit conversions which may occur such as when using strings in place of UUID or integer values, etc. )*r�DefaultExecutionContextr-�compiled�compiled_parameters�_insertmanyvaluesre�effective_returning�execution_optionsr�rjr�_insertmanyvalues_rows�sort_by_parameter_order�!_deliver_insertmanyvalues_batches�fetchall_for_returning� BaseException�_handle_dbapi_exception�sql_util�_long_statement�replaced_statement�replaced_parameters�num_sentinel_columns� is_downgraded�implicit_sentinel�extend�sorted�operator� itemgetter�sentinel_param_keys�sentinel_columnsr�� descriptionr�r�r�batchr"r��sentinel_values�KeyError�args)r�r�r� statement� parameters�generic_setinputsizes�contextr��_sentinel_proc_initializedr��imv� is_returning� batch_sizer�resultr�� imv_batch�rows�be�composite_sentinel� ordered_rows�ker�r�r�r�s` @@@@r�r�z0DefaultDialect._deliver_insertmanyvalues_batches�s�����������.��8�8��� �W�%5�6�6�� � !�FJ��+0�"�%�9���(������$(��)E�$F�$F� ��.�2�2� (�$�*I� � � � � (� (�#*�#<�#@�#@�&��$�$� � �$(� � � �*,�F�-3�G� *�&)�&A� #� #�',� #��F�!�C�C� � � � !� � #� � � �} (�} (�I��O�O�O��r (� �"�9�9�&�A�A�D�D��$�����6�6�� �0��1M�N�N�!�5���$(� 7������������������)�)�)��+�`(�I�4K�`(�),�)A�A�)E�&��,�!�$6�5�5�5�� � �"�4�X�-@��-D�-D�E�E�E����!��2�2�2�2��/�/�/�/��3�D�5�:�-��8�8�8�8�9<�$'�$8�$*�$6��u�v�v�$>�9"�9"� 8�8�8�4�4�!$� 4�Q� 7�"�#;�#;� $�f�&8��&<�Q�&?�$�$�2� 6:�2� *�J�,�,�,�,�,�(,�,�,�,�(�(�/�J�,�,�,�,�KO�,�,�,�(�(�,J�+I�D�+I�+I�+I�(��+�,�,��I�O�0D�0D�D�D�"�5�)�69�)�/�6J�6J�)�)� #�#3�4�4�)�)�)����"�(�(�(�(�1:�1J�(�(�(� � ��$�"�"�"�"�5� P�35�7�1�:� P� P� P� � � "� "����� "����"�M�M�,�/�/�/�/��M�M�$�'�'�'��{} (�} (s0�%C;�; E�7E�E�?K� L�$L�Lc�2�|�||��dSr�)� executemany�r�rr�r�r�s r��do_executemanyzDefaultDialect.do_executemany�s�����9�j�1�1�1�1�1r�c�2�|�||��dSr��rnr�s r�� do_executezDefaultDialect.do_execute�s�����y�*�-�-�-�-�-r�c�0�|�|��dSr�r�)r�rr�r�s r��do_execute_no_paramsz#DefaultDialect.do_execute_no_params�s�����y�!�!�!�!�!r�c��dS)NFr�)r��er�rs r�razDefaultDialect.is_disconnect�s���ur�c �:� t|�|����}d�|D��}||krGtd|j�dt t |���|���������t|��S#t$rYdSwxYw)Nc�^�g|]*}|�dd�������+S)r9� )�replace�upper)r!�levels r�r5z@DefaultDialect._gen_allowed_isolation_levels.<locals>.<listcomp>�s?��!�!�!�49�� � �c�3�'�'�-�-�/�/�!�!�!r�r�zi get_isolation_level_values() method should return names as UPPERCASE using spaces, not underscores; got ) �list�get_isolation_level_values� ValueErrorr�r�r(� differencer�r�)r�r�� raw_levels�normalized_levelss r��_gen_allowed_isolation_levelsz,DefaultDialect._gen_allowed_isolation_levels�s��� ,��d�=�=�j�I�I�J�J�J�!�!�=G�!�!�!� ��.�.�.� �O�t�y�O�O��c�*�o�o�8�8�9J�K�K�L�L�O�O���� �*�+�+� +��#� � � ��4�4� ���s�"B � B�Bc �"�|�dd�����}|�|��}|r9||vr5tjd|�d|j�dd�|�������|�||��dS)Nr9r�zInvalid value z1 for isolation_level. Valid isolation levels for z are r:)r�r�r�r"r�r�r��set_isolation_level)r�r�r��_allowed_isolation_levelss r�r�z.DefaultDialect._assert_and_set_isolation_level�s���� � �c�3�'�'�-�-�/�/��$(�$F�$F� �% �% �!� &� ��6�6�6��#�:��:�:�.2�i�:�:��9�9�6�7�7�:�:��� � � � ��U�3�3�3�3�3r�c���|j�:|jdks|j|jksJ�|�||j��dS|j�J�|�||j��dS)N� AUTOCOMMIT)r�r�r�r�s r��reset_isolation_levelz$DefaultDialect.reset_isolation_level�s��� � +� 7��0�L�@�@��3��/�0�0�0�0� � 0� 0��D�<� � � � � ��/�;�;�;� � 0� 0���,� � � � � r�c���|�dS|���}|���}||kr|S||kr|j�|��s|S||krt |d���S|S)NT)�quote)�lowerr�r��_requires_quotesr.�r�r�� name_lower� name_uppers r��normalize_namezDefaultDialect.normalize_name�s��� �<��4��Z�Z�\�\� ��Z�Z�\�\� � �� #� #��K� �4� � � � $� 5� 5� �&�&� � � � �4� � ��t�4�0�0�0� 0��Kr�c��|�dS|���}|���}||kr|S||kr|j�|��s|}|Sr�)r�r�r�r�r�s r��denormalize_namezDefaultDialect.denormalize_namesm�� �<��4��Z�Z�\�\� ��Z�Z�\�\� � �� #� #��K� �4� � � � $� 5� 5� �&�&� ��D�� r�c��|Sr�r�r�s r��get_driver_connectionz$DefaultDialect.get_driver_connections���r�c�z�tt|��|��jtt|��juSr�)r�r��__code__rN)r��methods r��_overrides_defaultz!DefaultDialect._overrides_defaults2�� �D��J�J�� '� '� 0��>�6�2�2�;� <� r�c+�K�g}g} tj|vr4|�|j��| �|j��tj|vr4|�|j��| �|j��tj|vr|�|j ��|� di��} |r|tj ur|tj ur|} n�g} d|i|�} g} tj |vr| �|��tj|vr| �| ��| D]/} | �||fi| ����� #t $rY�,wxYw|rt#|��}| D]S}|r||vrK||f} ||||fd|i|��fV��#t$j$r}|| vr|| |<Yd}~�;d}~wt$j$rY�OwxYw�TdS)N� unreflectabler)r�TABLErA�get_table_names�get_temp_table_names�VIEW�get_view_names�get_temp_view_names�MATERIALIZED_VIEW�get_materialized_view_names�popr�ANYrdr�� TEMPORARYr�r(r"�UnreflectableTableError�NoSuchTableError)r��single_tbl_methodr��kindr� filter_names�scoper� names_fns�temp_names_fnsr��names�name_kw�fns�fn�tabler�rjs r��_default_multi_reflectz%DefaultDialect._default_multi_reflect s������ ��� � �t� #� #� � � �T�1� 2� 2� 2� � !� !�$�";� <� <� <� �?�d� "� "� � � �T�0� 1� 1� 1� � !� !�$�":� ;� ;� ;� � '�4� /� /� � � �T�=� >� >� >������3�3� � � ����(�(�� ��&�&�!�E�E��E���.�2�.�G��C��"�e�+�+�� � �9�%�%�%��$��-�-�� � �>�*�*�*�� � ����L�L���J�!:�!:�'�!:�!:�;�;�;�;��*�����D����� � -��|�,�,�L�� � �E�� �5�L�#8�#8��u�o�� ��)�)�&����6<��@B��������� �2�1�1�1��-�/�/�-0� �c�*�����������+�����D�����$9� � s0�?E� E)�(E)� F�G�, F:�:G�Gc �*�|j|j|fi|��Sr�)r �get_table_options�r�r�rs r��get_multi_table_optionsz&DefaultDialect.get_multi_table_optionsi�.��*�t�*� � "�J� � �24� � � r�c �*�|j|j|fi|��Sr�)r � get_columnsrs r��get_multi_columnsz DefaultDialect.get_multi_columnsn�"��*�t�*�4�+;�Z�N�N�2�N�N�Nr�c �*�|j|j|fi|��Sr�)r �get_pk_constraintrs r��get_multi_pk_constraintz&DefaultDialect.get_multi_pk_constraintqrr�c �*�|j|j|fi|��Sr�)r �get_foreign_keysrs r��get_multi_foreign_keysz%DefaultDialect.get_multi_foreign_keysvs.��*�t�*� � !�:� � �13� � � r�c �*�|j|j|fi|��Sr�)r rrs r��get_multi_indexesz DefaultDialect.get_multi_indexes{rr�c �*�|j|j|fi|��Sr�)r �get_unique_constraintsrs r��get_multi_unique_constraintsz+DefaultDialect.get_multi_unique_constraints~s.��*�t�*� � '�� � �79� � � r�c �*�|j|j|fi|��Sr�)r �get_check_constraintsrs r��get_multi_check_constraintsz*DefaultDialect.get_multi_check_constraints�s.��*�t�*� � &� � � �68� � � r�c �*�|j|j|fi|��Sr�)r �get_table_commentrs r��get_multi_table_commentz&DefaultDialect.get_multi_table_comment�rr�)rorprQrqrrrsrtrurvrwrxr^ryr^rjrzrfrwr{rDrnrer|r)r�r1)r�r>r�r�)r�r�r�)r�rrr rrr�re)rr2rr[r�r)r�rrr[r�r)r�r;r�re)��__name__r�� __qualname__�__doc__r%r-�statement_compilerr+� ddl_compilerr�r��IdentifierPreparerr��supports_alter�supports_comments�supports_constraint_comments�inline_commentsr��div_is_floordivrr��NONEr�rO�__annotations__rP�default_sequence_baser��execute_sequence_format�supports_schemas�supports_views�supports_sequences�sequences_optional�"preexecute_autoincrement_sequences�supports_identity_columns�postfetch_lastrowid�favor_returning_over_lastrowid�#insert_null_pk_still_autoincrementsr�r��update_returning_multifrom�delete_returning_multifromr��cte_follows_insert�supports_native_enumrv�supports_native_uuid�returns_native_bytes�#non_native_boolean_check_constraint�supports_simple_order_by_label�tuple_in_valuesr$r+r�IsolationLevelCharacteristic�LoggingTokenCharacteristicr)�asint� bool_or_str�asboolr\�supports_native_decimalr�rxr_rQr`rar��supports_sane_multi_rowcountrbr��supports_default_values�supports_default_metavalue�default_metavalue_token�supports_empty_insert�supports_multivalues_insertrfrgr,� NOT_SUPPORTEDrhrj�insertmanyvalues_max_parameters�supports_is_distinct_fromr�rn�supports_for_update_ofr�rk�requires_name_normalize�is_async� has_terminate�$_legacy_binary_type_literal_encoding�deprecated_paramsr*r�ri� NO_LINTINGr��property� deprecatedr��memoized_propertyr�r��update_executemany_returning�delete_executemany_returningr�r�r�r�r�r�r�� classmethodr�r�r�r�r�r�r�r�r�rr rrrr.r1r&rDrMrQrTrWrVr_rlrdrsrwrzr}r�r�r�r�ra�memoized_instancemethodr�r�r�r�r�r�r�r rrrrrr r#r&r�r�r�rNrNss��������+�+�!�-���'�L� �4���*�H��N���#(� ��O�#���O��'�,�K�26��6�6�6�6�26��6�6�6�6���$�����N�����).�&� %����%*�"�*/�'�����!&��!&������ ��#�� �� ��*.�'�%)�"��O�!3��!3�K��K�M�M�G�_�G�I�I� � �"�"��.@�T�-?� �J�$�D�$�W�-�-�)��)�'�2�2� �J��� �J��k� � � .� .�� � � � �$�� �D�!��9=�'�=�=�=�=�%)�O�)�)�)�)� ,0��/�/�/�/�04��4�4�4�4�!��#'� �MO�H�O�O�O�O� ��#��:�!&��<�'��� !��.�"'��!&��&�&�&�&�.3�%�3�3�3�3� %�2�'�����'+��*�*�*�*�&+�#� $��#(� ���#����)-��-�-�-�-�$���H��M� ,3�(��T�� � ����*-1�48�&*�,0�26�/3�&*�9?��/3�%(�C��(;�$<�$<�$)�PI�PI�PI�PI�'��&PI�d��T�_� � -���  � � ���X�  � �� C� C��� C� ��C�C���C�,$)� �#(� � �������� ��F�F���F� � � � �������& ��+�+���+��-�-��X�-��+�+��X�+��9�9�9��[�9�(�(�(�(�����[�� � � � �"�"�"�H��� � � �4�4�4� ;� ;� ;� � � � �F�F�F�F� ���<�<�<���� ����" N� N� N� N� � � �<H�H�H� � � �$�$�$�"�"�"�(�(�(�!�!�!� ��?�?���?�����.����7�7�7�=�=�=�G�G�G�D�D�D�j(�j(�j(�X2�2�2�2�.�.�.�.�"�"�"�"���� �!�,�,�"�!�,�$4�4�4�$���"���4���"��� � � � G�G�G�R � � � O�O�O� � � �  � � � O�O�O� � � �  � � �  � � � � r�rNc�r�eZdZejZejZejZ ej Z dZ dZ dZdZdZdZdZdZdZdZdZdS)�StrCompileDialectTFN)r'r�r(r%�StrSQLCompilerr*r+r+�StrSQLTypeCompilerr�r,r�r�r�r�r�r;r8r9r:rvrSrFr�r�r�rfrf�st������!�0���'�L� �3���*�H�������#�� $������).�&�"��"&��%)�"�"�"r�rfc���eZdZUdZdZdZdZdZdZe j Z de d<dZ de d<dZde d<dZd e d <ejZd e d <ejZdZd e d<dZdZdZdZdZdZde d<dZde d<ej��Zde d< e Z!de d<de d<de d<de d<de d<de d <d!e d"<d#e d$<e"d%ej��Z#dZ$d&e d'<d(Z%d)e d*<e&dgd1���Z'e&e(j)fdhd7���Z*e&did9���Z+e&djd:���Z,dkd;�Z-e.d<���Z/ej0d=���Z1ej0d>���Z2ej0dld@���Z3ej0dldA���Z4ej0dB���Z5dmdC�Z6ej0dD���Z7dE�Z8dF�Z9dG�Z:dH�Z;dI�Z<dJ�Z=dK�Z>dL�Z?dM�Z@dN�ZAdO�ZBejCdndP���ZDe.dQ���ZEdR�ZFdS�ZGdT�ZHdU�ZIdV�ZJej0dW���ZKdX�ZLdY�ZMdZ�ZNd[�ZOdod]�ZPd^�ZQd_�ZRdZSd`e da< dpdc�ZTdd�ZUde�ZVdf�ZWdS)qr�Fr� execute_styleNzOptional[Compiled]r�zAOptional[Tuple[List[ResultColumnsEntry], bool, bool, bool, bool]]�result_column_structzOptional[Sequence[Row[Any]]]�returned_default_rowsr8r�zOptional[Executable]�invoked_statementr^� _rowcountzOptional[Callable[[str], str]]�_translate_colnamezMapping[str, List[str]]�_expanded_parametersr�root_connectionrA�_dbapi_connectionrr\r �unicode_statementrrz%List[_MutableCoreSingleExecuteParams]r�r7r��&Optional[Sequence[BindParameter[Any]]]�extracted_parametersr[zOptional[List[Tuple[Any, ...]]]r�rri�_num_sentinel_colsr�r�� compiled_ddlr+r�rc���|�|��}||_||_|j|_|x|_}d|_||_t|��|_|j r=|j� di��}|j j } | |j|��|_|j|_ |���|_g|_|jr|���g|_n |jg|_|S)zKInitialize execution context for an ExecutableDDLElement construct.Tr)�__new__rqrrr\r��isddlr�r rsrr�r��_render_schema_translatesr�� create_cursorrr�r�r5r��_empty_dict_params) r�r\r�r�r�rwr�r�r�rsts r�� _init_ddlz!DefaultExecutionContext._init_ddl�s���{�{�3����)���!1���!�)�� �#/�/�� ���� �!2���!$�X����� � (� �#'�#9�#=�#=�&��$�$� ��#�=�C�%(�S��&�(<�&�&�D� "��/����(�(�*�*�� �#%�� � � � 8�&�>�>�@�@�A�D�O�O�#�6�7�D�O�� r�r-r4rB� cache_hitrc � ������|�|��} || _|| _|j| _�| _|| _�| _| | _|| _�j �j �j �j �j f| _�jx| _} �jx| _} �jx| _} �j| _| s| s| �rx�jj}t,rt/|t0��sJ�d| _t5|j��x| _}t5�j��x| _}|r|jrd| _ |r|rJ�|s|r��j!r�| r.| jj"s"tGj$d| jj%�d����| r5|j&r.| jj's"tGj$d| jj%�d����| r'| jj(r�j)stGj$d���| r.| jj*s"tGj$d| jj%�d����| r.| jj+s"tGj$d| jj%�d����|s��,�d� ��g| _-n��fd �t]|��D��| _-t_|��d krK| jr3�j)r,t`j1| _2�j)}|j3� |j4| _5nt`j6| _2�j7| _8| �9��| _:| jj;s | jj<r| �=���j>}|��j?s�j@r�| jArtGj$d �����B| j-d��}|j| _8|jC| _Dt�|�����F|jG��|jH}n�jIr | jjH}nd }�jJr=| j�Kdi��}�jLjM}|| j8|��| _8| j8| _�jIrOg}|�J�| j-D]9���fd�|D��}|�N|�O|�����:|| _PnQg}�jQ�| j-D]9��r���fd��D��}n��fd��D��}|�N|���:|| _P| S)z6Initialize execution context for a Compiled construct.Tr�z] with current server capabilities does not support INSERT..RETURNING when executemany is usedz} with current server capabilities does not support INSERT..RETURNING with deterministic row ordering when executemany is usedznStatement does not have "insertmanyvalues" enabled, can't use INSERT..RETURNING with executemany in this case.z] with current server capabilities does not support UPDATE..RETURNING when executemany is usedz] with current server capabilities does not support DELETE..RETURNING when executemany is usedF)ru� escape_namesc�H��g|]\}}��|d|������S)F)r�� _group_numberru)�construct_params)r!�grp�mr�rus ��r�r5z:DefaultExecutionContext._init_compiled.<locals>.<listcomp>usP���(�(�(��C�� �)�)��!&�"%�)=� *���(�(�(r�rNzL'literal_execute' or 'expanding' parameters can't be used with executemany()rrc�V��g|]%}|�vr�|�|��n�|��&Sr�r��r!r��compiled_params�flattened_processorss ��r�r5z:DefaultExecutionContext._init_compiled.<locals>.<listcomp>�sY���&�&�&� ��"6�6�6�2�,�S�1�/�#�2F�G�G�G�,�S�1� &�&�&r�c���i|]:}��||��|�vr�|�|��n�|��;Sr�)r�)r!r�r�� escaped_namesr�s ���r�r�z:DefaultExecutionContext._init_compiled.<locals>.<dictcomp>�sl������  � &�)�)�#�s�3�3�"�&:�:�:�6�0��5�o�c�6J�K�K�K�!0��!5� ��r�c�X��i|]&}||�vr�|�|��n�|��'Sr�r�r�s ��r�r�z:DefaultExecutionContext._init_compiled.<locals>.<dictcomp>�s\������  � �"�&:�:�:�6�0��5�o�c�6J�K�K�K�!0��!5� ��r�)Rryrqrrr\rurmr�r�r��_result_columns�_ordered_columns�_textual_ordered_columns�_ad_hoc_textual�_loose_column_name_matchingrk�isinsert�isupdate�isdelete� isplaintext�is_text� compile_stater�rr�rG�is_crudre� _returning�_is_explicit_returningrt�_is_implicit_returning�_supplemental_returning�_is_supplemental_returning�for_executemanyr�r"r�r��_sort_by_parameter_orderr�rfr�rarbr�r�� enumeraterr�INSERTMANYVALUESrjr�r�rv� EXECUTEMANY�stringrsr|r�insert_prefetch�update_prefetch�_process_execute_defaults�_bind_processors�literal_execute_params�post_compile_paramsr��#_process_parameters_for_postcompile�parameter_expansionrp�dictr� processors� positiontupr�rr�r�r{rAr5r��escaped_bind_names)r�r\r�r�r�r�r�rmrur�r��ii�iu�id_� dml_statement�ier�iirr�r��expanded_stater�rr~�core_positional_parameters�l_param�core_dict_parameters�d_paramr�r�r�s ` ` @@@r��_init_compiledz&DefaultExecutionContext._init_compileds���������{�{�3����)���!1���!�)�� �$8��!�!2��� �� �"���!2��� � $� � %� � -� � $� � 0� % ��!�&�.�.�� ��%�.�.�� ��&�/�/�� ���+�� � �6 ��6 �s�6 �$�2�<�M�� =�!�-��<�<�<�<�<��D�L�04�]�5M�0N�0N� N�D� '�#�04��+�1�1� �D� '�#�� 7�}�<� 7�26��/�� $�� $� $�$��' �s�' �� 8�' ��&�d�l�G�&��1�E�4�<�#C�E�E�E���� � �%�>� �!�L�]� � �1�3�4�<�#C�3�3�3������� �9��%�6�� �1�4���� � �� � I� ��1�E�4�<�#C�E�E�E���� ����!J���1�E�4�<�#C�E�E�E���� � B��)�)�)=�!&�*���(�D� $� $�(�(�(�(�(�(� �3�3�(�(�(�D� $��:����"�"��=�B�X�%?�B�)5�)F�D�&�"�4�C��+�7�25�2J��/��)5�)A�D�&�!)�����(�(�*�*�� � �=� (� -�D�M�,I� -� � *� *� ,� ,� ,��.� � � � � *� �h�.J� ��� ��-�.���� &�I�I��(��+���N� &4�%=�D� "�(6�(J�D� %�#'� �#3�#3� � � '� '��(A� B� B� B�(�4�K�K� � � ��-�3�K�K��K� � (� �#'�#9�#=�#=�&��$�$� ��#�=�C�%(�S��&�(<�&�&�D� "� �/��� � �1 3�IK� &��*�*�*�#'�#;� � ��&�&�&�&�&� +� &�&�&��+�1�1��3�3�G�<�<�����9�D�O�O�DF� �$�7�M�$(�#;� 5� 5�� �������� $3� ���G�G������ $3� ���G�%�+�+�G�4�4�4�4�2�D�O�� r�r�c�8��|�|��}||_||_|j|_d|_||_|s5|jjr����g|_ng|j g|_nYt|d�j��r||_n6t|dt��r||_n�fd�|D��|_t|��dkrtj|_|x|_|_|���|_|S)z8Initialize execution context for a string SQL statement.Trc�:��g|]}��|����Sr�)r5)r!�pr\s �r�r5z;DefaultExecutionContext._init_statement.<locals>.<listcomp>s4������78��/�/��2�2���r�r)ryrqrrr\r�r�r�r5r�r}r�r�rrr�rjr�rsr|r)r�r\r�r�r�r�r�r�s ` r��_init_statementz'DefaultExecutionContext._init_statement�s+����{�{�3����)���!1���!�)�� ��� �!2���� ��|�&� <�#*�#B�#B�#D�#D�"E����#'�#:�";���� � �1� �w�'F� G� G� �(�D�O�O� � �1� �t� ,� ,� �(�D�O�O�����<F����D�O� �z�?�?�Q� � �!-�!9�D� �2;�;����/��(�(�*�*�� �� r�c��|�|��}||_||_|j|_||_|���|_|S)z;Initialize execution context for a ColumnDefault construct.)ryrqrrr\r�r|r)r�r\r�r�r�r�s r�� _init_defaultz%DefaultExecutionContext._init_defaultsO���{�{�3����)���!1���!�)�� �!2����(�(�*�*�� �� r�c�~�|j�dSt��}|j}|jj}|�J�|tur d||z fzS|t ur d||z fzS|t ur d||z fzS|tur'd|jvrd|jd||z fzSd||z fzS|turd|j j |j j ||z fzSd S) Nzraw sqlz no key %.5fszcached since %.4gs agozgenerated in %.5fs�_cache_disable_reasonzcaching disabled (%s) %.5fs zcaching disabled %.5fsz,dialect %s+%s does not support caching %.5fs�unknown) r�rr�� _gen_time� NO_CACHE_KEY� CACHE_HIT� CACHE_MISS�CACHING_DISABLEDr��NO_DIALECT_SUPPORTr\r�r�)r��now�ch�gen_times r��_get_cache_statsz(DefaultExecutionContext._get_cache_stats2s�� �=� ��9��n�n�� �^���=�*���#�#�#� �� � �!�S�8�^�$5�5� 5� �9�_�_�+�s�X�~�.?�?� ?� �:� � �'�3��>�*;�;� ;� �#� #� #�&�$�*@�@�@�5��*�+B�C��(�N�9��� 0�3��>�2C�C�C� �%� %� %�A�� �!�� �#��h��E�� � �9r�c�@�|jtjtjfvSr�)rjrr�r�r�s r�r�z#DefaultExecutionContext.executemanyTs#���!� � $� � )�& � � r�c��|jr |jjSd|jvr*|jj�|jd��S|jjS)Nr)r�r�r�r\r��_with_schema_translater�s r�r�z+DefaultExecutionContext.identifier_preparer[s[�� �=� 4��=�)� )� #�t�'=� =� =��<�3�J�J��&�'=�>��� ��<�3� 3r�c��|jjSr�)rqrr�s r�rzDefaultExecutionContext.enginefs���#�*�*r��Optional[Sequence[Column[Any]]]c�`�trt|jt��sJ�|jjSr�)rr�r�r-� postfetchr�s r��postfetch_colsz&DefaultExecutionContext.postfetch_colsjs-�� � :��d�m�[�9�9� 9� 9�9��}�&�&r�c��trt|jt��sJ�|jr |jjS|jr |jjSdS)Nr�)rr�r�r-r�r�r�r�r�s r�� prefetch_colsz%DefaultExecutionContext.prefetch_colspsQ�� � :��d�m�[�9�9� 9� 9�9� �=� ��=�0� 0� �]� ��=�0� 0��2r�c�8�|j�dd��S)N� no_parametersF)r�r�r�s r�r�z%DefaultExecutionContext.no_parameters{s���%�)�)�/�5�A�A�Ar�c���|j}d|jvr3|j�di��}|jj}|||��}|s(|jjr|j���}ni}|�|j |||���|j � ��}|� |d}nd}|�>|� |j|j j dd��} | r | |��S|S)aExecute a string statement on the current cursor, returning a scalar result. Used to fire off sequences, default phrases, and "select lastrowid" types of statements individually or in the context of a parent INSERT or UPDATE statement. r)r�Nrr) rqr�r�r�r{r\r�r5�_cursor_executer�fetchoner�r�) r��stmt�type_r��connrr~r��rr�s r��_execute_scalarz'DefaultExecutionContext._execute_scalars���#�� !�T�%;� ;� ;�#'�#9�#=�#=�&��$�$� ��*�D�C��3�t�1�2�2�D�� ��|�&� �!�\�A�A�C�C� � �� � ���T�[�$� �D��I�I�I��k�"�"�$�$�� �?��A��A�A��A� � ��1�1�� �d�k�5�a�8��;���D�� ��t�A�w�w���r�c��|jSr�)rqr�s r�r�z"DefaultExecutionContext.connection�s ���#�#r�c��|jjsdS|jjr�|j�dd��o||jr$t |jjtj ��pQ|j p#t |jjtj ��o%|j ot� |j ��}n|j�dd��}|S)NF�stream_resultsT)r\r�rnr�r�r�r�r�r'� Selectable� TextClausers�SERVER_SIDE_CURSOR_RE�match)r��use_server_sides r��_use_server_side_cursorz/DefaultExecutionContext._use_server_side_cursor�s����|�8� ��5� �<� +� �"�4�8�8� �$����� �O��t�}�6� �8M�N�N� �!�M�)��%� �M�3�Z�5J���L� �.� L�.�3�3�D�4J�K�K� �O�"#�4�8�8� �%���O��r�c���|jjrV|j�dd��s |jjr/|���rd|_|���Sd|_|���S)Nr�FT) r\r�r�r�rnr��_is_server_side�create_server_side_cursor�create_default_cursorr�s r�r|z%DefaultExecutionContext.create_cursor�s��� �L� 5� 0��&�*�*�+;�U�C�C�  0� �L�4�  0��4�4�6�6� 0�$(�D� ��1�1�3�3� 3�#(�D� ��-�-�/�/� /r�c�*�|���Sr�)�fetchall)r�rs r�r�z.DefaultExecutionContext.fetchall_for_returning�s����� � � r�c�4�|j���Sr�)rrrr�s r�r�z-DefaultExecutionContext.create_default_cursor�s���%�,�,�.�.�.r�c��t���r��r�r�s r�r�z1DefaultExecutionContext.create_server_side_cursor�s��!�#�#�#r�c��dSr�r�r�s r��pre_execz DefaultExecutionContext.pre_exec�rNr�c� �td���)Nz,This dialect does not support OUT parametersr�)r�rs r��get_out_parameter_valuesz0DefaultExecutionContext.get_out_parameter_values�s��!� :� � � r�c��dSr�r�r�s r�� post_execz!DefaultExecutionContext.post_exec�rNr�c�8�|�|j|��S)z�Return a 'result processor' for a given type as present in cursor.description. This has a default implementation that dialects can override for context-sensitive result type handling. )r�r\)r�r��colname�coltypes r��get_result_processorz,DefaultExecutionContext.get_result_processor�s���-�-�d�l�G�D�D�Dr�c��|jjS)a return self.cursor.lastrowid, or equivalent, after an INSERT. This may involve calling special cursor functions, issuing a new SELECT on the cursor (or a new one), or returning a stored value that was calculated within post_exec(). This function will only be called for dialects which support "implicit" primary key generation, keep preexecute_autoincrement_sequences set to False, and when no explicit id value was bound to the statement. The function is called once for an INSERT statement that would need to return the last inserted primary key for those dialects that make use of the lastrowid concept. In these cases, it is called directly after :meth:`.ExecutionContext.post_exec`. )r� lastrowidr�s r�� get_lastrowidz%DefaultExecutionContext.get_lastrowid�s��"�{�$�$r�c��dSr�r�)r�r�s r��handle_dbapi_exceptionz.DefaultExecutionContext.handle_dbapi_exception rNr�c�6�|j�|jS|jjSr�)rnr�rowcountr�s r�rz DefaultExecutionContext.rowcounts�� �>� %��>� !��;�'� 'r�c��|jduSr�)rnr�s r�� _has_rowcountz%DefaultExecutionContext._has_rowcounts���~�T�)�)r�c��|jjSr�)r\r�r�s r�r�z.DefaultExecutionContext.supports_sane_rowcounts ���|�2�2r�c��|jjSr�)r\rNr�s r�rNz4DefaultExecutionContext.supports_sane_multi_rowcounts ���|�8�8r�c���|j}|j�'|�dd��r|jj|_|js|jr|���}dx}}n�|�dd��}|jp|�dd��}|j }|r-|tj urtj |j|j��}|j p |jj}|� tj}tj|||��}|j}|r6|js/t't(|��jr|�|��|j|_|r|�|��}|S)N�preserve_rowcountF� yield_perr�)r�rnr�rrr�r��_setup_dml_or_text_resultr��cursor_fetch_strategy�_cursor�_DEFAULT_FETCH�BufferedRowCursorFetchStrategy�alternate_cursor_descriptionr��_NO_CURSOR_DQL� CursorResultr�rzrr-�has_out_parameters�_setup_out_parameters� _soft_closedr)r��exec_optr��yp�sr�strategy�cursor_descriptionr�s r��_setup_result_proxyz+DefaultExecutionContext._setup_result_proxy s}���)�� �>� !�h�l�l�3F��&N�&N� !�!�[�1�D�N� �<� N�4�<� N��3�3�5�5�F��O�B������k�4�0�0�B��%�N����6F��)N�)N�B��1�H�� �h�'�"8�8�8�"�A��K��!7�����5�+��;�*� �"�)�"�1���)�$��:L�M�M�F��=�� � /��J� /��[�(�+�+�>� /� � &� &�v� .� .� .�"�/��� � *��%�%�b�)�)�F�� r�c���tt|j��}d�|j���D��}i}t d�|D��|�d�|D������D]w\}}|j}|�|j ��}|� |j j ��} |� |j | ��} | � | |��}|||j <�x||_dS)Nc�*�g|]\}}|j� ||f��Sr�)� isoutparam�r!�paramr�s r�r5zADefaultExecutionContext._setup_out_parameters.<locals>.<listcomp>Ms9�� � � ���t��� � �D�M� � � r�c��g|]\}}|��Sr�r�r#s r�r5zADefaultExecutionContext._setup_out_parameters.<locals>.<listcomp>Us�� 5� 5� 5�{�u�d�U� 5� 5� 5r�c��g|]\}}|��Sr�r�r#s r�r5zADefaultExecutionContext._setup_out_parameters.<locals>.<listcomp>Ws��8�8�8�+�%���8�8�8r�)rr-r�� bind_namesr<r�r�r�� dialect_implr\�get_dbapi_typer��result_processorr��out_parameters) r�r�r��out_bindparamsr+� bindparam� raw_valuer�� impl_type� dbapi_typer*s r�rz-DefaultExecutionContext._setup_out_parametersJs"��� �T�]�3�3�� � �'�2�8�8�:�:� � � �� ��$'� 5� 5�n� 5� 5� 5� � )� )�8�8��8�8�8� � �% �% � 6� 6� �I�y� �N�E��*�*�4�<�8�8�I�"�1�1�$�,�2K�L�L�J�(�9�9�� �j� � � � �+�,�,�Y�7�7� �,5�N�9�=� )� )� .����r�c�X�tt|j��}|j}|jr`|jt jur-|jr&tj |j |j |j ���}|jr|���|_|jr-|tjurtj|j |j��}|tjurd}n|j p |j j}|� tj}n,|jr%|jt jusJ�|d|j �}tj|||��}|jr�|jrw|���}||_|�||��|_|jjsJ�|jr|� |���n|�!��n�|j"s|�!��n�|jrq|���}|r||_tG|��|_$|jr|� |��n|�!��|jjsJ�n_|jjs-|j$�|j j%|_$|�!��n&|j&s|j'r|j$�|j j%|_$|S)N)�initial_buffer�alternate_descriptionr)(rr-r�rr�rjrr�r�r� FullyBufferedCursorFetchStrategyrr�rr<�_setup_ins_pk_from_lastrowid�inserted_primary_key_rowsr�rrr��_NO_CURSOR_DMLr�rvrr��allrl�%_setup_ins_pk_from_implicit_returning� _metadata� returns_rowsr��_rewind� _soft_closer�rrnrr�r�)r�r�rrr�r�s r�rz1DefaultExecutionContext._setup_dml_or_text_resultfs���� �T�]�3�3��(,�(B�� �=� ��"�l�&C�C�C��0�D�#�C��K�#'�#>�!�=� �����+� ��5�5�7�7��.� � � �H��0F�$F�$F��=�� �T�3���H� �w�-� -� -�!%� � ��5�+��;�*� � � %��-�H�H� � $� ��%��)F�F�F�F�F�"4��T�,�,�,�"� �-4�,@� �(�.�- �- �� �=�8 6��*� %��z�z�|�|��-1��*��>�>�v�t�L�L��.��'�4�4�4�4� �2�)��N�N�4�(�(�(�(��&�&�(�(�(�(��0� %��"�"�$�$�$��� (� 6��:�:�<�<�D�� 2�-1��*� ��Y�Y�D�N��.� %����t�$�$�$�$��"�"�$�$�$��#�0� 0� 0�0� 0��!�.� 6��~�%�!%��!5��� � � � � � � � �]� 6�d�m� 6��~�%�!%��!5���� r�c�*�|���Sr�)�_setup_ins_pk_from_emptyr�s r�r6z1DefaultExecutionContext.inserted_primary_key_rows�s�� �,�,�.�.�.r�c��tt|j��j}|���}|||jd��gS)Nr)rr-r��+_inserted_primary_key_from_lastrowid_getterrr�)r��getterrs r�r5z4DefaultExecutionContext._setup_ins_pk_from_lastrowid�sN��� ��� � � 5� ��&�&�(�(� ���y�$�":�1�"=�>�>�?�?r�c�h��tt|j��j��fd�|jD��S)Nc�(��g|]}�d|����Sr�r�)r!r$rBs �r�r5zDDefaultExecutionContext._setup_ins_pk_from_empty.<locals>.<listcomp>�s%���J�J�J����t�U�#�#�J�J�Jr�)rr-r�rAr�)r�rBs @r�r?z0DefaultExecutionContext._setup_ins_pk_from_empty�s?���� ��� � � 5� �K�J�J�J��1I�J�J�J�Jr�c���|sgStt|j��j�|j}�fd�t ||��D��S)Nc�.��g|]\}}�||����Sr�r�)r!r�r$rBs �r�r5zQDefaultExecutionContext._setup_ins_pk_from_implicit_returning.<locals>.<listcomp>�s6��� � � �#-�3��F�F�3�� � � � � r�)rr-r��+_inserted_primary_key_from_returning_getterr�r�)r�r�r�r�rBs @r�r9z=DefaultExecutionContext._setup_ins_pk_from_implicit_returning�sk���� ��I�� ��� � � 5� ��2�� � � � �14�T�?�1K�1K� � � � r�c�v�|js|jo+ttt|j��j��Sr�)r�r�rerr-r�r�r�s r��lastrow_has_defaultsz,DefaultExecutionContext.lastrow_has_defaults�s6��� �.��� �D� ��d�m� ,� ,� 6�5 �5 � r��0Optional[List[Tuple[str, Any, TypeEngine[Any]]]]c���� � � � �|js|jrdStt|j�������}|�dS|j}|jr<t|��}|j � ||j |j |j |���jr�j� nd� |jr�fd��jpdD��}n#d��j���D��}g}|D�]\}���jvr�||jvr�t+�j��r^t/�jj��� |�� |��� � � fd�t5|j|��D������|��d��� |��� � fd�|j|D������|��d��� � �� �||��n|}|�|� �jf����|S)a�Given a cursor and ClauseParameters, prepare arguments in order to call the appropriate style of ``setinputsizes()`` on the cursor, using DB-API types from the bind parameter's ``TypeEngine`` objects. This method only called by those dialects which set the :attr:`.Dialect.bind_typing` attribute to :attr:`.BindTyping.SETINPUTSIZES`. Python-oracledb and cx_Oracle are the only DBAPIs that requires setinputsizes(); pyodbc offers it as an option. Prior to SQLAlchemy 2.0, the setinputsizes() approach was also used for pg8000 and asyncpg, which has been changed to inline rendering of casts. Nc�.��g|]}|�j|f��Sr�)�binds)r!r�r�s �r�r5zDDefaultExecutionContext._prepare_set_input_sizes.<locals>.<listcomp>+s5��������h�n�S�)�*���r�r�c��g|] \}}||f�� Sr�r�)r!r-r�s r�r5zDDefaultExecutionContext._prepare_set_input_sizes.<locals>.<listcomp>0s1�����"�I�s��i� ���r�c3��K�|]@\}}����||��n|�|�z�jj|�zfV��AdSr�)r�r��types)r!r� paramnamer-�dbtypesr��nums ����r�r"zCDefaultExecutionContext._prepare_set_input_sizes.<locals>.<genexpr>>s}����� .� .�+�C�� $6�#A�!3� 6� 6�y�)� L� L� L�%.�#�C�#�I�.�%�N�0��s��;�� .� .� .� .� .� .r�c3�\�K�|]&}����||��n|��jfV��'dSr�)r�r�)r!rQr-�dbtyper�s ���r�r"zCDefaultExecutionContext._prepare_set_input_sizes.<locals>.<genexpr>Nsd����� .� .�&� $6�#A�!3� 6� 6�y�)� L� L� L�%.�"�%�N�� .� .� .� .� .� .r�)rzr�rr-r��_get_set_input_sizes_lookupr\rfr��dispatch�do_setinputsizesrr�r�r�r�r�r'r<r�rpr)r�rrPr�r�r�rA) r�� inputsizesr\r<�generic_inputsizesr�� escaped_namer-r�rUrRr�rSs @@@@@@r��_prepare_set_input_sizesz0DefaultExecutionContext._prepare_set_input_sizes�s���������& �:� ��� ��4�� �T�]�3�3���9�9�;�;� � � ��4��,�� � � ��j�)�)�J� � � -� -��D�K�����$� � � � � &� &�!)�!<� � �!%� � � � �����#�/�5�2����E�E� ��&.�&9�&?�&?�&A�&A����E� FH��#�/ �/ �N�C���H�;�;�;���d�/�/�/� ���0�0���i�n�2�3�3�C�(��3�G�&�-�-� .� .� .� .� .� .� .�/8� �5�c�:�/�/� .� .� .� � � � �(�^�^�I�t�<�<�F�&�-�-� .� .� .� .� .� .�*.�)B�3�)G� .� .� .� � � � �$��� �4�8�8��*�5�'�*�*�3��4�4�4��� #�)�)�!�6�9�>�:�����"�!r�c���|jr|�||��S|jr||_|�|��S|jr|�|||��S|jSr�)� is_sequence� fire_sequence� is_callable�current_columnr��is_clause_element�_exec_default_clause_element)r��columnr]r�s r�� _exec_defaultz%DefaultExecutionContext._exec_defaultisw�� � � ��%�%�g�u�5�5� 5� � � �#)�D� ��;�;�t�$�$� $� � &� ��4�4�V�W�e�L�L� L��;� r�c����|jstj|j|��}n|j}tj|���|j���}|����|j�|j r/|j� ��fd�|j pdD����}n��fd��D��}|� t|��||���S)Nr[c�V��g|]%}|�vr�|�|��n�|��&Sr�r��r!r�r�r�s ��r�r5zHDefaultExecutionContext._exec_default_clause_element.<locals>.<listcomp>�sV������ ��*�,�,�(� �3����(<�=�=�=�,�S�1� ��r�r�c�X��i|]&}||�vr�|�|��n�|��'Sr�r�rhs ��r�r�zHDefaultExecutionContext._exec_default_clause_element.<locals>.<dictcomp>�sY������ � ��j�(�(�$�J�s�O�O�C�$8�9�9�9�(��-� ��r�)r�)� _arg_is_typedr'� type_coercer�r]r^r\r�r�r�r5r�r�r ) r�rdr]r�� default_argr�r�r�r�s @@r�rcz4DefaultExecutionContext._exec_default_clause_elementxs�����$� &�$�0���e�D�D�K�K�!�+�K��$�[�1�1�9�9�$�,�9�O�O��"�3�3�5�5���.� � � � ���=�=������ (�3�9�r� ��� � �J�J������ +� ���J��#�#� ��M�M�5�Z�$� � � r�z"Optional[_CoreSingleExecuteParams]�current_parametersTc�(��� |j�|j}|�J���J�n"#t$rtjd���wxYwt dt t |j��j��}|�J�|r�tj |��r�|j r�|j r$|j dz�|jj�|ji}n|j�|ji}d�|j�J�|j���}|���fd�|D����|S�S)aiReturn a dictionary of parameters applied to the current row. This method can only be used in the context of a user-defined default generation function, e.g. as described at :ref:`context_default_functions`. When invoked, a dictionary is returned which includes entries for each column/value pair that is part of the INSERT or UPDATE statement. The keys of the dictionary will be the key value of each :class:`_schema.Column`, which is usually synonymous with the name. :param isolate_multiinsert_groups=True: indicates that multi-valued INSERT constructs created using :meth:`_expression.Insert.values` should be handled by returning only the subset of parameters that are local to the current column default invocation. When ``False``, the raw parameters of the statement are returned including the naming convention used in the case of multi-valued INSERT. .. versionadded:: 1.2 added :meth:`.DefaultExecutionContext.get_current_parameters` which provides more functionality over the existing :attr:`.DefaultExecutionContext.current_parameters` attribute. .. seealso:: :attr:`.DefaultExecutionContext.current_parameters` :ref:`context_default_functions` Nzdget_current_parameters() can only be invoked in the context of a Python side column default functionrFrrc3�6�K�|]}|�d|�fzfV��dS)z%s_m%dNr�)r!r��indexr�s ��r�r"zADefaultExecutionContext.get_current_parameters.<locals>.<genexpr>�sG�������?B��j��S�%�L�!8�9�:������r�)rmra�AttributeErrorr"r�rr-r�r�r&r��_has_multi_parameters�_is_multiparam_columnrp�originalr��_dict_parameters�keysr)r��isolate_multiinsert_groupsrdr��drvrpr�s @@r��get_current_parametersz.DefaultExecutionContext.get_current_parameters�s�����B *��0�J��(�F��%�%�%��)�)�)�)��� � � ��)�C��� � ����� ��[�$�-�8�8�F� � � ��(�(�(� &� �� �]�+�+� ��3� � �+� �� �q�(���_�(�*�V�Z�*@�A����Z��F�J�!7�8���� �1�=�=�=� �1�6�6�8�8�D� �H�H������FJ���� � � ��H�� s��:c�V�|j�dS|�||j|j��Sr�)r]rer��r�rds r��get_insert_defaultz*DefaultExecutionContext.get_insert_default�s+�� �>� !��4��%�%�f�f�n�f�k�J�J� Jr�c�V�|j�dS|�||j|j��Sr�)�onupdaterer�r{s r��get_update_defaultz*DefaultExecutionContext.get_update_default s+�� �?� "��4��%�%�f�f�o�v�{�K�K� Kr�c��� �tt�j��}|j� d}|jr� �fd�|jD��}n|jr� �fd�|jD��}ng}�jD]W}|�_|D]K\}}\}}} } } | r |||<|dz }�|r|||<�!| r|�_|���||<�9| |��} | �| ||<�L�X�`dS)Nrc�B��g|]}|�|��|j�jf��Sr�)�_default_description_tupler|�r!�c� key_getterr�s ��r�r5zEDefaultExecutionContext._process_execute_defaults.<locals>.<listcomp> sG������� ��J�q�M�M��0��+� ���r�c�B��g|]}|�|��|j�jf��Sr�)�_onupdate_description_tuplerr�s ��r�r5zEDefaultExecutionContext._process_execute_defaults.<locals>.<listcomp> sG������� ��J�q�M�M��1��+� ���r�r) rr-r��_within_exec_param_key_getterr�r�r�rmra)r�r��sentinel_counter� prefetch_recsr$r�� param_keyr�� is_scalarr`� is_sentinel�fallbackr�r�s` @r�r�z1DefaultExecutionContext._process_execute_defaults sv����� �T�]�3�3���;� ��� � #� ������"�1����M�M�� %� ������"�1����M�M��M��-� /� /�E�&+�D� #��  /� /����:��i��k��� /�'7�E�)�$�$��)�$�$��/�'*�E�)�$�$� �/�*+�D�'�'*�s�4�y�y�E�)�$�$�"�(�1�+�+�C���+.��i�(��# /�& � #� #� #r�) r\rr�rr�rAr�r8rwr+r�r)r\rr�rr�rAr�r8r�r-r�r4rmrBrurtr�rr�r)r\rr�rr�rAr�r8r�r r�r7r�r) r\rr�rr�rAr�r8r�r)r�r )r�r�r�)r�ri)r�rJ)T)Xr'r�r(r�r�r�r�r�rzr�EXECUTErjr3r�rkrlr$� EMPTY_DICTr�rrrrmr�r�r�r�rrnror+rpr�r�rr}r�rvrcrrr�r�r�r�r�r^r�r`r�rr�r�r�r�r�r�r|r�r�r�r�r�r�rrr�non_memoized_propertyrr r�rNrrrr6r5r?r9rIr\rercrmryr|rr�r�r�r�r�r��s���������H��H��H��G��G� �E�".�"6�M�6�6�6�6�#'�H�'�'�'�'� �� � � � �;?��>�>�>�>�)-���8�8�8�8�#�2��.2��2�2�2�2�"��"��!&���O��L�#�I�#�#�#�#� :>��=�=�=�=�4F�D�4F�4H�4H��H�H�H�H�� �I�����,�,�,�,�������������>�>�>�>�(�(�(�(�@�@�@�@���1�4�?�C�C��>B��B�B�B�B��������*�*�*��[�*�X�!+� ;�c�c�c�c��[�c�J�'�'�'��[�'�R�����[��& � � � �D� � ��X� �  ��4�4���4� ��+�+���+� ��'�'�'���'�  �������� ��B�B���B�'�'�'�'�R ��$�$���$����:0�0�0�$!�!�!�/�/�/�$�$�$� � � � � � �  � � �E�E�E�%�%�%�& � � � ��(�(�(� ��(� �*�*��X�*�3�3�3�9�9�9�(�(�(�T/�/�/�8p�p�p�d ��/�/���/� @�@�@�K�K�K�  �  �  � � � � i"�i"�i"�i"�V � � �% �% �% �N>B��A�A�A�A��0B�B�B�B�HK�K�K� L�L�L� 4$�4$�4$�4$�4$r�r�)pr)� __future__rrBr�rq�re�timer�typingrrrrr r r r r rrrrrrr��rrrr�baserrrrrr� reflectionrrr!r"r#r$�sqlr%r&r'r(r�� sql._typingr)�sql.baser*� sql.compilerr+r,r-� sql.elementsr.� util.typingr/r0rPr1r2r3r4r5r6r7r8r9r:r;r<r�r=r�r>r?r@rArBrCrDrE�sql.dmlrFrGrH� sql.schemarI� sql.type_apirJrKrLr^�I�UNICODEr�r�r�r�r�r�r�rNrfr��execution_ctx_clsr�r�r��<module>r�sZ����#�"�"�"�"�"��������� � � � � � � � ������� � � � �������������������������������������!�!�!�!�!�!�"�"�"�"�"�"������������������������������� � � � � � �����������������������������������"�"�"�"�"�"�#�#�#�#�#�#�������$�$�$�$�$�$�(�(�(�(�(�(�"�"�"�"�"�"�#�#�#�#�#�#�������������������������������������������������"�"�"�"�"�"�'�'�'�'�'�'�������&�&�&�&�&�&�7�7�7�7�7�7�&�&�&�&�&�&�&�&�&�&�&�&�������!�!�!�!�!�!� ��*� � � � � � �������+�+�+�+�+�+�3�3�3�3�3�3�4�4�4�4�4�4�3�3�3�3�3�3�4�4�4�4�4�4�+�+�+�+�+�+�;�;�;�;�;�;�'�'�'�'�'�'�+�+�+�+�+�+�*�*�*�*�*�*�������������'�'�'�'�'�'�������,�,�,�,�,�,� � � � � � �'�'�'�'�'�'�&�&�&�&�&�&�1�1�1�1�1�1�"�"�"�"�"�"�$�$�$�$�$�$�,�,�,�,�,�,�#�#�#�#�#�#�1�1�1�1�1�1�3�3�3�3�3�3�)�)�)�)�)�)�#�� �<���� �1B�C�C�� �D���� � �����X �X �X �X �X �W�X �X �X �v *�*�*�*�*��*�*�*�0V$�V$�V$�V$�V$�.�V$�V$�V$�r$$;�� � � r�
Memory