관리-도구
편집 파일: loading.cpython-311.pyc
� �܋f/� � �~ � d Z ddlmZ ddlZddlmZ ddlmZ ddlmZ ddlm Z dd l mZ dd l mZ ddl mZ ddl mZ d dlmZ d dlm Z d dlm Z e j � � Zd� Z e j d� � d!d�� � Zd� Z d"d�Z d#d�Z d"d�Zd� Z d#d�Zd� Zd� Zd� Z d� Z!d� Z" G d� de#� � Z$d � Z%dS )$z�private module containing functions used to convert database rows into object instances and associated state. the functions here are called primarily by Query, Mapper, as well as some of the attribute loading strategies. � )�absolute_importN� )� attributes)�exc)� path_registry)�strategy_options)�_DEFER_FOR_STATE)�_SET_DEFERRED_EXPIRED)� _none_set)� state_str� )�utilc # �B � ���� �K � t � � �_ i �_ � j }� j }|r|rt }n� fd�} t t ��� fd�� j D � � � � � \ �}|st j d|� � � i �_ � j r�� � j � � }|sdS n�� � � }|r�d � � fd�|D � � }n��fd�|D � � }�j � � � D ]\ } } | � �| � � �|rt j ||� � }|D ]}|V � �� j sdS ��# t$ $ rE t j � � 5 �� � � ddd� � Y dS # 1 swxY w Y Y dS w xY w) z$Return an ORM result as an iterator.c �\ �� t d� t �j | � � D � � � � S )Nc 3 �L K � | ]\ }}|j rt |� � n|V � � d S �N)�use_id_for_hash�id)�.0�ent�items �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/orm/loading.py� <genexpr>z/instances.<locals>.filter_fn.<locals>.<genexpr>2 sL � � � � � �!��T� !$� 3�=�B�t�H�H�H��� � � � � � )�tuple�zip� _entities)�row�querys �r � filter_fnzinstances.<locals>.filter_fn1 s= �� �� � �%(���#�%>�%>�� � � � � r c �>