Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib64/python3.11/site-packages/alembic/testing/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib64/python3.11/site-packages/alembic/testing/__pycache__/requirements.cpython-311.pyc

�

�܋fD��R�ddlmZddlmZddlmZddlmZGd�de��ZdS)	�)�Requirements)�util)�sqla_compat�)�
exclusionsc�<�eZdZed���Zed���Zed���Zed���Zed���Zed���Z	ed���Z
ed���Zed	���Zed
���Z
ed���Zed���Zed
���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Zed���Z ed���Z!ed���Z"ed ���Z#ed!���Z$ed"���Z%ed#���Z&ed$���Z'ed%���Z(d&S)'�SuiteRequirementsc�(�tj��S)zXTarget database must support external schemas, and have one
        named 'test_schema'.�r�open��selfs �m/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/alembic/testing/requirements.py�schemaszSuiteRequirements.schemas	���
�� � � �c�(�tj��S)z;target database should support 'AUTOCOMMIT' isolation level�r�closedr
s r�autocommit_isolationz&SuiteRequirements.autocommit_isolations��� �"�"�"rc�(�tj��S)zneeded for sqlalchemy compatrr
s r�materialized_viewsz$SuiteRequirements.materialized_viewss��� �"�"�"rc�0�d�}tj|��S)Nc��ddlm}||j��}	|�d��n(#t$rYdSt
$rYdSt$rYnwxYwdS)Nr)�inspect�xTF)�
sqlalchemyr�db�get_unique_constraints�NotImplementedError�	TypeError�	Exception)�configr�insps   r� doesnt_have_check_uq_constraintszXSuiteRequirements.unique_constraint_reflection.<locals>.doesnt_have_check_uq_constraintss���*�*�*�*�*�*��7�6�9�%�%�D�
��+�+�C�0�0�0�0��&�
�
�
��t�t��
�
�
��t�t��
�
�
���
�����5s�.�
A�	A�	A�A�r�skip_if)rr%s  r�unique_constraint_reflectionz.SuiteRequirements.unique_constraint_reflections%��	�	�	��!�"B�C�C�Crc�0�tjd�gd��S)z'Target database must support SEQUENCEs.c�$�|jjjS�N)r�dialect�supports_sequences�r#s r�<lambda>z-SuiteRequirements.sequences.<locals>.<lambda>2s��F�I�-�@�rzno sequence support�r�only_ifr
s r�	sequenceszSuiteRequirements.sequences-s%���!�
@�
@�A�!�
�
�	
rc�(�tj��Sr+rr
s r�foreign_key_matchz#SuiteRequirements.foreign_key_match6����� � � rc�(�tj��Sr+rr
s r�!foreign_key_constraint_reflectionz3SuiteRequirements.foreign_key_constraint_reflection:r5rc�(�tj��S)zMTarget database must support check constraints
        and also enforce them.rr
s r�check_constraints_w_enforcementz1SuiteRequirements.check_constraints_w_enforcement>rrc�(�tj��Sr+rr
s r�reflects_pk_namesz#SuiteRequirements.reflects_pk_namesE���� �"�"�"rc�(�tj��Sr+rr
s r�reflects_fk_optionsz%SuiteRequirements.reflects_fk_optionsIr<rc�.�tjd�d��S)Nc��tjSr+)r�sqla_14r.s rr/z1SuiteRequirements.sqlalchemy_14.<locals>.<lambda>Ps��t�|�+�rz"SQLAlchemy 1.4 or greater requiredr&r
s r�
sqlalchemy_14zSuiteRequirements.sqlalchemy_14Ms ���!�+�+�0�
�
�	
rc�.�tjd�d��S)Nc��tjSr+�r�sqla_2r.s rr/z1SuiteRequirements.sqlalchemy_1x.<locals>.<lambda>Ws��4�;�rzSQLAlchemy 1.x testr&r
s r�
sqlalchemy_1xzSuiteRequirements.sqlalchemy_1xTs ���!�&�&�!�
�
�	
rc�.�tjd�d��S)Nc��tjSr+rEr.s rr/z0SuiteRequirements.sqlalchemy_2.<locals>.<lambda>^s
��t�{�?�rzSQLAlchemy 2.x testr&r
s r�sqlalchemy_2zSuiteRequirements.sqlalchemy_2[s ���!�*�*�!�
�
�	
rc�,�tjd���S)Nc�$�|jjjSr+)rr,�supports_commentsr.s rr/z,SuiteRequirements.comments.<locals>.<lambda>es��6�9�,�>�rr0r
s r�commentszSuiteRequirements.commentsbs���!�>�>�
�
�	
rc�(�tj��Sr+rr
s r�alter_columnzSuiteRequirements.alter_columnhr5rc�(�tj��Sr+rr
s r�computed_columnsz"SuiteRequirements.computed_columnslr<rc�b�tjtjtj����Sr+)rr1�BooleanPredicater�has_computedr
s r�computed_columns_apiz&SuiteRequirements.computed_columns_apip�(���!��'��(@�A�A�
�
�	
rc�b�tjtjtj����Sr+)rr1rTr�has_computed_reflectionr
s r�computed_reflects_normallyz,SuiteRequirements.computed_reflects_normallyvs(���!��'��(K�L�L�
�
�	
rc�(�tj��Sr+rr
s r�#computed_reflects_as_server_defaultz5SuiteRequirements.computed_reflects_as_server_default|r<rc�(�tj��Sr+rr
s r�)computed_doesnt_reflect_as_server_defaultz;SuiteRequirements.computed_doesnt_reflect_as_server_default�r<rc�(�tj��Sr+rr
s r�autoincrement_on_composite_pkz/SuiteRequirements.autoincrement_on_composite_pk�r<rc�(�tj��Sr+rr
s r�fk_ondelete_is_reflectedz*SuiteRequirements.fk_ondelete_is_reflected�r<rc�(�tj��Sr+rr
s r�fk_onupdate_is_reflectedz*SuiteRequirements.fk_onupdate_is_reflected�r<rc�(�tj��Sr+rr
s r�fk_onupdatezSuiteRequirements.fk_onupdate�r5rc�(�tj��Sr+rr
s r�fk_ondelete_restrictz&SuiteRequirements.fk_ondelete_restrict�r5rc�(�tj��Sr+rr
s r�fk_onupdate_restrictz&SuiteRequirements.fk_onupdate_restrict�r5rc�(�tj��Sr+rr
s r�fk_ondelete_noactionz&SuiteRequirements.fk_ondelete_noaction�r5rc�(�tj��Sr+rr
s r�fk_initiallyzSuiteRequirements.fk_initially�r<rc�(�tj��Sr+rr
s r�
fk_deferrablezSuiteRequirements.fk_deferrable�r<rc�(�tj��Sr+rr
s r�fk_deferrable_is_reflectedz,SuiteRequirements.fk_deferrable_is_reflected�r<rc�(�tj��Sr+rr
s r�fk_nameszSuiteRequirements.fk_names�r5rc�(�tj��Sr+rr
s r�integer_subtype_comparisonsz-SuiteRequirements.integer_subtype_comparisons�r5rc�,�tjd���S)Nc�$�|jjjSr+)rr,�requires_name_normalizer.s rr/z5SuiteRequirements.no_name_normalize.<locals>.<lambda>�s��6�9�,�D�rr&r
s r�no_name_normalizez#SuiteRequirements.no_name_normalize�s���!�D�D�
�
�	
rc�(�tj��Sr+rr
s r�identity_columnsz"SuiteRequirements.identity_columns�r<rc�(�tj��Sr+rr
s r�identity_columns_alterz(SuiteRequirements.identity_columns_alter�r<rc�b�tjtjtj����Sr+)rr1rTr�has_identityr
s r�identity_columns_apiz&SuiteRequirements.identity_columns_api�rWrc�(�tj��Sr+rr
s r�supports_identity_on_nullz+SuiteRequirements.supports_identity_on_null�r<rN))�__name__�
__module__�__qualname__�propertyrrrr(r2r4r7r9r;r>rBrGrJrNrPrRrVrZr\r^r`rbrdrfrhrjrlrnrprrrtrvrzr|r~r�r��rrr	r	s�������
�!�!��X�!��#�#��X�#�
�#�#��X�#��D�D��X�D�"�
�
��X�
��!�!��X�!��!�!��X�!��!�!��X�!��#�#��X�#��#�#��X�#��
�
��X�
��
�
��X�
��
�
��X�
��
�
��X�
�
�!�!��X�!��#�#��X�#��
�
��X�
�
�
�
��X�
�
�#�#��X�#��#�#��X�#��#�#��X�#��#�#��X�#��#�#��X�#��!�!��X�!��!�!��X�!��!�!��X�!��!�!��X�!��#�#��X�#��#�#��X�#��#�#��X�#��!�!��X�!��!�!��X�!��
�
��X�
�
�#�#��X�#��#�#��X�#��
�
��X�
�
�#�#��X�#�#�#rr	N)	�sqlalchemy.testing.requirementsr�alembicr�alembic.utilr�testingrr	r�rr�<module>r�s���8�8�8�8�8�8�������$�$�$�$�$�$� � � � � � �B#�B#�B#�B#�B#��B#�B#�B#�B#�B#r

Hacked By AnonymousFox1.0, Coded By AnonymousFox