관리-도구
편집 파일: descriptor_props.cpython-311.pyc
� �܋fTr � �d � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlm Z ddlmZ dd lmZ ddlmZ G d� de� � Zej � dd�� � G d� de� � � � Zej � dd�� � G d� de� � � � Zej � dd�� � G d� de� � � � Zej � dd�� � ej dd� � G d� de� � � � � � ZdS )z�Descriptor properties are more "auxiliary" properties that exist as configurational elements, but don't participate as actively in the load/persist ORM loop. � )� attributes)� properties)�query)�MapperProperty)�PropComparator)� _none_set� )�event)�exc)�schema)�sql)�util)� expressionc � � e Zd ZdZdZdZd� ZdS )�DescriptorPropertyzO:class:`.MapperProperty` which proxies access to a user-defined descriptor.NFc � � ��� � � G �fd�dt � � }� j �7t �j � j d � � }�� |� � r|� _ � j �&� fd�}� fd�}� fd�}t |||�� � � _ t j � j � � � j j � j � j �� fd�� j � �� � } |� j � � |_ �j � � j |� � d S ) Nc �p �� e Zd ZdZdZdZe� fd�� � Zd� Z e � d� � re j f� fd� ZdS dS )�7DescriptorProperty.instrument_class.<locals>._ProxyImplFTc � �� �j S �N)�uses_objects��self�props ��V/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/orm/descriptor_props.pyr zDDescriptorProperty.instrument_class.<locals>._ProxyImpl.uses_objects, s �� ��(�(� c � � || _ d S r ��key)r r s r �__init__z@DescriptorProperty.instrument_class.<locals>._ProxyImpl.__init__0 s � �����r �get_historyc �2 �� �� |||� � S r )r! )r �state�dict_�passiver s �r r! zCDescriptorProperty.instrument_class.<locals>._ProxyImpl.get_history5 s �� � �+�+�E�5�'�B�B�Br N) �__name__� __module__�__qualname__�accepts_scalar_loader�expire_missing� collection�propertyr r �hasattrr �PASSIVE_OFFr! )r s �r � _ProxyImplr '