Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
sync.cpython-313.pyc44 linesDownload Raw Back to __pycache__
1�

2��j7��b�SrSSKJr SSKJr SSKJr SSKJr Sr	Sr3S	rS4rSr
SrS
rg)zgprivate module containing functions used for copying data5between instances based on join conditions.6 7�)�annotations�)�exc)�util)�PassiveFlagc8���URnURnUH�up�URU	nURURRRX[R5nURU9nURURRRX(WS5 U(dM�U	R(dM�U10R(dM�U11RU	5(dM�SURSX*4'M� g![Ran
[SXX:U
5 Sn
A
N�Sn
A
ff=f![Ran
[SXX:U
5 Sn
A
N�Sn
A
ff=f)NFT�pk_cascaded)�dict�_columntoproperty�manager�key�impl�getr�PASSIVE_OFFr�UnmappedColumnError�_raise_col_to_prop�set�primary_key�12references�13attributes)�source�
source_mapper�dest�dest_mapper�synchronize_pairs�	uowcommit�flag_cascaded_pks�source_dict�	dest_dict�l�r�prop�value�errs              �YD:\code\apps\devtools\python\user_packages\Python313\site-packages\sqlalchemy/orm/sync.py�populater&s2���+�+�K��	�	�I�!���	M� �2�2�1�5�D��N�N�4�8�8�,�1�1�5�5��[�%<�%<��E�	L��0�0��3�D��L�L����"�'�'�+�+�D�U�D�I�
���
�
�
��
�
�
����Q���=A�I� � �-��!9�:�9"���&�&�	M��u�m���L�L��	M���&�&�	L��t�]�{�s�K�K��	L�s1�AD�2AE�D>�&D9�9D>�E-�E(�(E-c14�P�UHAup4URUnXRnURUnWXR'MC g![Ran[	SXXU5 SnANJSnAff=f![Ran[	SXXU5 SnAM�SnAff=f)NFT)rr
rrr)rrrr r!r"r#r$s        r%�bulk_populate_inherit_keysr(As���!���	O� �2�2�1�5�D����)�E�	N� �2�2�1�5�D�$)�K���!�"���&�&�	O��u�m�
�#�N�N��	O���&�&�	N��t�]�}��M�M��	N�s.�A	�A8�	A5�A0�0A5�8B%�B � B%c��UH�up4UR(aWURXRU5[R;a)[SUSUS[R"U5S35eURXRUS5 M� g![Ran[SSX1XE5 SnAM�SnAff=f)NzDependency rule on column 'z)' tried to blank-out primary key column 'z' on instance '�'T)r�_get_state_attr_by_columnr15�orm_util�	_none_set�AssertionError�	state_str�_set_state_attr_by_columnrrr)rrrr r!r$s      r%�clearr1Qs���!���
�M�M��5�5�d�I�I�q�I��%�%�&�!�-�a�S�1��#�_�X�-?�-?��-E�,F�a�I��
�16	C��1�1�$�	�	�1�d�K�"���&�&�	C��t�T�1�1�B�B��	C�s�1B�C�'B;�;Cc17�J�UHnupVURUR5U5nURXRU[R18S9nWX&R'WX#UR-'Mp g![Ran	[SXSXi5 Sn	A	NKSn	A	ff=f�N)�passiveF)19�_get_committed_attr_by_column�objr+r20rrrrrr
)21rrr�22old_prefixrr r!�oldvaluer#r$s23          r%�updater9cs���!���	F�$�B�B��24�25��a��H�"�;�;����Q��0G�0G�<��E�26��U�U��#+��!�%�%�
� �"���&�&�	F��u�m��a�E�E��	F�s�A	A6�6B"�27B�B"c28���UH=upEURXRU[RS9nWX%R'M? g![R29an[
SXSXW5 SnAN:SnAff=fr3)r+r30rrrrrr
)rr�dict_rr r!r#r$s        r%�
populate_dictr<rsr��!���	F�!�;�;����Q��0G�0G�<��E���e�e��"��31�&�&�	F��u�m��a�E�E��	F�s�)A�A1�A,�,A1c32�&�UH\upEURUnUR	UWR33[R5n[UR5(dM\ g g![Ran[SX$SXW5 SnANsSnAff=f)zhreturn true if the source object has changes from an old to a34new value on the given synchronize pairs35 36FNT)37rrrr�get_attribute_historyr
r�PASSIVE_NO_INITIALIZE�bool�deleted)	rrrrr r!r"r$�historys	         r%�source_modifiedrC~s���38"���	F� �2�2�1�5�D��1�1��D�H�H�k�?�?�39������ � ��"����&�&�	F��u�m��a�E�E��	F�s�A$�$B�8B�Bc	��U(a [R"SU<SU<S35Ue[R"SU<SU<SU<S35Ue)Nz0Can't execute sync rule for destination column 'z'; mapper 'z�' does not map this column.  Try using an explicit `foreign_keys` collection which does not include this column (or use a viewonly=True relation).z+Can't execute sync rule for source column 'zx' does not map this column.  Try using an explicit `foreign_keys` collection which does not include destination column 'z$' (or use a viewonly=True relation).)rr)�isdestr�
source_columnr�dest_columnr$s      r%rr�sT����%�%�40-8��	
F�41��
	��%�%��m�[�
:�42��	�N)�__doc__�43__future__r�rrr,�baserr&r(r1r9r<rCr�rHr%�<module>rNs?���44#����(B�V
N� C�$,�	��&rH
codekingpro/portable-devtools · Team Ai