관리-도구
편집 파일: interfaces.cpython-38.pyc
U -?�fv� � @ s� d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm Z dd lmZ dd lmZ ddlm Z ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# dd lm$Z$ dd!lm%Z% dd"lm&Z& dd#lm'Z' dd$lm(Z( dd%lm)Z) dd&lm*Z* d'd(lm+Z+ d'dlmZ, d'd)lm-Z- d'd*lm.Z. d'd+l/m0Z0 d'd,l/m1Z1 d'd-l/m2Z2 d'd.l3m4Z4 d'd/l3m5Z5 d'd0l6m7Z7 d'd1l8m9Z9 d'd2l:m;Z; d'd3l<m=Z= d'd4l.m>Z> d'd5l?m@Z@ d'd6l?mAZA ej�r�dd7lBmCZC dd8lBmDZD dd9lBmEZE dd:lBmFZF dd;lBmGZG dd<lHmIZI dd=lmJZJ dd>lKmLZL dd?lKmMZM dd@lKmNZN ddAlOmPZP ddBlQmRZR ddClSmTZT ddDlUmVZV ddElmWZW ddFlXmYZY ddGlZm[Z[ ddHl\m]Z] ddIl^m_Z_ ddJl.m`Z` ddKl.maZa d'dLlbmcZc d'dMldmeZe d'dNldmfZf d'dOldmgZg d'dPldmhZh d'dQl8miZi d'dRljmkZk d'dSl?mlZl eedTf ZmedUedV�ZnedWedXdY�ZoedZd[dV�ZpG d\d]� d]e1jq�ZrG d^d_� d_e1jse1jten �ZuG d`da� daeuen �ZvG dbdc� dce1jw�ZxG ddde� deeA�ZyG dfdg� dg�ZzG dhdi� die�Z{e{e4j|e4j|e4j|e4j|e4j|e4j|�Z}e{dje4j|e4j|e4j|e4j|e4j|�Z~G dkdl� dl�ZG dmdn� dneeen �Z�e-j�G dodp� dpe7eeen e"e.j���Z�e-j�G dqdr� dre*eo eeo e9��Z�G dsdt� dte�en �Z�G dudv� dve5�Z�G dwdx� dxe7e��Z�G dydz� dze��Z�G d{d|� d|e��Z�G d}d~� d~e��Z�e.j�dd�dd��G d�d�� d�e���Z�G d�d�� d��Z�dS )�z� Contains various base classes used throughout the ORM. Defines some key base classes prominent within the internals. This module and the classes within are mostly private, though some attributes are exposed when inspecting mappings. � )�annotationsN)�Any)�Callable)�cast)�ClassVar)�Dict)�Generic)�Iterator)�List)� NamedTuple)�NoReturn)�Optional)�Sequence)�Set)�Tuple)�Type)� TYPE_CHECKING)�TypeVar)�Union� )�exc)� path_registry)�_MappedAttribute)�EXT_CONTINUE)�EXT_SKIP)�EXT_STOP)�InspectionAttr)�InspectionAttrInfo)� MANYTOMANY)� MANYTOONE)�NO_KEY)�NO_VALUE)�NotExtension)� ONETOMANY)�RelationshipDirection)�SQLORMOperations� )� ColumnElement)� inspection)�util)� operators)�roles)�visitors)�_NoArg)�ExecutableOption)�HasCacheKey)�ColumnOperators)�Column)� TypeEngine)�warn_deprecated)�RODescriptorReference)� TypedDict)�_EntityType)�_IdentityKeyType)� _InstanceDict)�_InternalEntityType)�_ORMAdapterProto)�InstrumentedAttribute)�Mapped)� _MapperEntity)�ORMCompileState)�QueryContext)�RegistryType)�_ClassScanMapperConfig)�_PopulatorDict)�Mapper)�AbstractEntityRegistry)�Query)�Session)� InstanceState)�_LoadElement)�AliasedInsp)� ORMAdapter)�Result)�_ColumnExpressionArgument)�_ColumnsClauseArgument)�_DMLColumnArgument)� _InfoType)�OperatorType)�_TraverseInternalsType)�_AnnotationScanType.�_T)�bound�_T_coT)rT � covariant�_TLS�Type[LoaderStrategy]c @ s e Zd ZdZdZdS )�ORMStatementRole� z?Executable SQL or text() construct, including ORM aware objectsN��__name__� __module__�__qualname__� __slots__Z _role_namerZ rZ rZ �I/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/orm/interfaces.pyrY s s �rY c @ s e Zd ZdZdZdS )�ORMColumnsClauseRolerZ z7ORM mapped entity, aliased entity, or Column expressionNr[ rZ rZ rZ r` ra z s ra c @ s e Zd ZdZdZdS )�ORMEntityColumnsClauseRolerZ zORM mapped or aliased entityNr[ rZ rZ rZ r` rb � s rb c @ s e Zd ZdZdZdS )�ORMFromClauseRolerZ z5ORM mapped entity, aliased entity, or FROM expressionNr[ rZ rZ rZ r` rc � s rc c @ s6 e Zd ZU ded<