opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sqlalchemy
/
orm
/
__pycache__
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
__init__.cpython-312.pyc
6.17 KB
Rename
Delete
_orm_constructors.cpython-312.pyc
102.92 KB
Rename
Delete
_typing.cpython-312.pyc
6.63 KB
Rename
Delete
attributes.cpython-312.pyc
97.49 KB
Rename
Delete
base.cpython-312.pyc
29.62 KB
Rename
Delete
bulk_persistence.cpython-312.pyc
62.89 KB
Rename
Delete
clsregistry.cpython-312.pyc
23.20 KB
Rename
Delete
collections.cpython-312.pyc
60.26 KB
Rename
Delete
context.cpython-312.pyc
100.73 KB
Rename
Delete
decl_api.cpython-312.pyc
65.77 KB
Rename
Delete
decl_base.cpython-312.pyc
67.21 KB
Rename
Delete
dependency.cpython-312.pyc
42.09 KB
Rename
Delete
descriptor_props.cpython-312.pyc
47.72 KB
Rename
Delete
dynamic.cpython-312.pyc
12.62 KB
Rename
Delete
evaluator.cpython-312.pyc
16.33 KB
Rename
Delete
events.cpython-312.pyc
133.89 KB
Rename
Delete
exc.cpython-312.pyc
9.60 KB
Rename
Delete
identity.cpython-312.pyc
12.30 KB
Rename
Delete
instrumentation.cpython-312.pyc
30.45 KB
Rename
Delete
interfaces.cpython-312.pyc
52.97 KB
Rename
Delete
loading.cpython-312.pyc
45.74 KB
Rename
Delete
mapped_collection.cpython-312.pyc
21.35 KB
Rename
Delete
mapper.cpython-312.pyc
164.73 KB
Rename
Delete
path_registry.cpython-312.pyc
30.74 KB
Rename
Delete
persistence.cpython-312.pyc
47.09 KB
Rename
Delete
properties.cpython-312.pyc
31.98 KB
Rename
Delete
query.cpython-312.pyc
125.64 KB
Rename
Delete
relationships.cpython-312.pyc
127.34 KB
Rename
Delete
scoping.cpython-312.pyc
81.62 KB
Rename
Delete
session.cpython-312.pyc
198.53 KB
Rename
Delete
state.cpython-312.pyc
44.03 KB
Rename
Delete
state_changes.cpython-312.pyc
6.84 KB
Rename
Delete
strategies.cpython-312.pyc
102.61 KB
Rename
Delete
strategy_options.cpython-312.pyc
84.69 KB
Rename
Delete
sync.cpython-312.pyc
6.40 KB
Rename
Delete
unitofwork.cpython-312.pyc
33.21 KB
Rename
Delete
util.cpython-312.pyc
82.97 KB
Rename
Delete
writeonly.cpython-312.pyc
28.11 KB
Rename
Delete
� #��g� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlm Z dd lm Z dd lmZ ddlm Z ddlmZ d d lm Z d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d0d�Zd� Zd� Zd� Zd� Z d� Z!ddddd�d�Z"dddd�d �Z#d!� Z$d"� Z%d#dd#d$�d%�Z&d#ddd&�d'�Z'd(� Z(d)� Z)d*� Z*d+� Z+d,� Z,d-� Z-d.� Z.d/� Z/y)1z�private module containing functions used to emit INSERT, UPDATE and DELETE statements on behalf of a :class:`_orm.Mapper` and its descending mappers. The functions here are called only by the unit of work functions in unitofwork.py. � )�annotations)�chain)�groupby)�zip_longestN� )� attributes)�exc)�loading)�sync)� state_str� )�future)�sql)�util)�cursor)� operators)�BooleanClauseList)�LABEL_STYLE_TABLENAME_PLUS_COLFc � � |s.| j s"t | |� D ] }t | |g|d�� � yg }g }t | ||� D ]: \ }}}} } }}| s|r|j |||| |f� �&|j |||| f� �< | j j � D ]K \ } }| |j vr�t | |� }t || |� }t | ||| |� t | ||| |� �M t | |t d� |D � d� |D � � � y)a; Issue ``INSERT`` and/or ``UPDATE`` statements for a list of objects. This is called within the context of a UOWTransaction during a flush operation, given a list of states to be flushed. The base mapper in an inheritance hierarchy handles the inserts/ updates for all descendant mappers. T)�singleNc 3 �4 K � | ] \ }}}}||||d f�� � y�w)FN� )�.0�state� state_dict�mapper� connections �K/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/orm/persistence.py� <genexpr>zsave_obj.<locals>.<genexpr>i s, � �� � �?O�;�U�J�� � � �F�J��>�?O�s �c 3 �6 K � | ] \ }}}}}||||d f�� � y�w)TNr )r r r r r �update_version_ids r r zsave_obj.<locals>.<genexpr>m s9 � �� � � &� �����%� � �F�J��=� &�s �)�batch�_sort_states�save_obj�_organize_states_for_save�append�_sorted_tables�items� _pks_by_table�_collect_insert_commands�_collect_update_commands�_emit_update_statements�_emit_insert_statements� _finalize_insert_update_commandsr )�base_mapper�states�uowtransactionr r �states_to_update�states_to_insert�dict_r r �has_identity� row_switchr! �table�insert�updates r r$ r$ ( s] � � �+�+�+�!�+�v�6�E��[�5�'�>�$�G� 7������ #�;��� G� � � �������:��#�#���v�z�3D�E� � �#�#�U�E�6�:�$F�G� H� %�3�3�9�9�;� ��v���,�,�,��)�%�1A�B��)��E�#3� �� ������ � ������ �# <�2 %��� � �?O� � � &� � �� c �� ��� t t | ||� � }| j j � D ]>