관리-도구
편집 파일: query.cpython-38.pyc
U -?�f~� � @ sb d Z ddlmZ ddlmZ ddlZddlmZ ddlm Z ddlm Z ddlmZ ddlmZ dd lm Z dd lmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl!m"Z" ddl#m$Z$ ddl#m%Z% ddl#m&Z& ddl#m'Z' dd l#m(Z( dd!l#m)Z) dd"lm*Z* dd#lm+Z+ dd$lm,Z, dd%lm-Z- dd&lm.Z. d'd(lm/Z0 d'd)lm1Z1 d'd*lm2Z2 d'd+lm3Z3 d'd,lm4Z4 d'dlmZ d'd-l5m6Z6 d'd.l5m7Z7 d'd/l8m9Z9 d'd0l8m:Z: d'd1l4m;Z; d'd2l4m<Z< d'd3l4m=Z= d'd4l4m>Z> d'dl4mZ? d'd5l4m@Z@ d'd6lAmBZB d'd7lAmCZC d'd8lDmEZE d'd9lFmGZG d'd:lFmHZH d'd;lFmIZI d'd<lFmJZJ d'd=lFmKZK d'd>lLmMZM d'd?lNmOZO d'd@lPmQZQ d'dAlPmRZR d'dBlPmSZS d'dClPmTZT d'dDlPmUZU d'dElPmVZV d'dFlPmWZW d'dGlPmXZX d'dHlYmZZZ d'dIlYm[Z[ e�r�ddJlm\Z\ ddKlm]Z] ddLlm^Z^ ddMlm_Z_ ddNl`maZa ddOlbmcZc ddPldmeZe ddQldmfZf ddRlgmhZh d'dSlimjZj d'dTlkmlZl d'dUlkmmZm d'dVlkmnZn d'dWlkmoZo d'dXlpmqZq d'dYlpmrZr d'dZlAmsZs d'd[lAmtZt d'd\lAmuZu d'd]lAmvZv d'd^lAmwZw d'd_lAmxZx d'd`lAmyZy d'dalAmzZz d'dblAm{Z{ d'dclAm|Z| d'ddlAm}Z} d'delAm~Z~ d'dflAmZ d'dglAm�Z� d'dhlAm�Z� d'dilAm�Z� d'djlAm�Z� d'dklAm�Z� d'dllAm�Z� d'dmlAm�Z� d'dnlFm�Z� d'dolFm�Z� d'dplLm�Z� d'dqlLm�Z� d'drlPm�Z� d'dslPm�Z� d'dtlPm�Z� d'dulPm�Z� d'dvlPm�Z� d'dwlPm�Z� d'dxlPm�Z� d'dylPm�Z� d'dzlPm�Z� d{d|gZ�ed}ed~�Z�e2j�e3j�G dd{� d{eReEeUeVeTe:e3j�eKeJee� ���Z�G d�d�� d�ej��Z�G d�d�� d��Z�G d�d�� d�e��Z�G d�d�� d�e��Z�G d�d�� d�e�e7eC �Z�dS )�a The Query class and support. Defines the :class:`_query.Query` class, the central construct used by the ORM to construct database queries. The :class:`_query.Query` class should not be confused with the :class:`_expression.Select` class, which defines database SELECT operations at the SQL (non-ORM) level. ``Query`` differs from ``Select`` in that it returns ORM-mapped objects and interacts with an ORM session, whereas the ``Select`` construct interacts directly with the database to return iterable result sets. � )�annotationsN)�Any)�Callable)�cast)�Dict)�Generic)�Iterable)�Iterator)�List)�Mapping)�Optional)�overload)�Sequence)�Tuple)�Type)� TYPE_CHECKING)�TypeVar)�Union� )� attributes)� interfaces)�loading)�util)�_O)�_assertions��_column_descriptions)�_determine_last_joined_entity)�_legacy_filter_by_entity_zero)� FromStatement)�ORMCompileState)�QueryContext)�ORMColumnDescription)�ORMColumnsClauseRole)�AliasedClass)� object_mapper)�with_parent� )�exc)�inspect)� inspection)�log)�sql)�Result)�Row)� dispatcher)�EventTarget)� coercions)� expression)�roles)�Select)�visitors)�_FromClauseArgument)�_TP)�SupportsCloneAnnotations��_entity_namespace_key)�_generative)�_NoArg)� Executable)� Generative)�BooleanClauseList)�Exists)�_MemoizedSelectEntities)�_SelectFromElements)�ForUpdateArg)�HasHints)�HasPrefixes)�HasSuffixes)�LABEL_STYLE_TABLENAME_PLUS_COL)�SelectLabelStyle)�Literal)�Self)�_EntityType)�_ExternalEntityType)�_InternalEntityType)�SynchronizeSessionArgument)�Mapper)�PathRegistry)�_PKIdentityArgument)�Session)� InstanceState)�CursorResult)�_ImmutableExecuteOptions)�CompiledCacheType)�IsolationLevel)�SchemaTranslateMapType)�FrozenResult)�ScalarResult)�_ColumnExpressionArgument)�#_ColumnExpressionOrStrLabelArgument)�_ColumnsClauseArgument)�_DMLColumnArgument)�_JoinTargetArgument)�_LimitOffsetType)� _MAYBE_ENTITY)�_no_kw)�_NOT_ENTITY)�_OnClauseArgument)�_PropagateAttrsType)�_T0)�_T1)�_T2)�_T3)�_T4)�_T5)�_T6)�_T7)�_TypedColumnClauseArgument)�CacheableOptions)�ExecutableOption)� ColumnElement)�Label)�_ForUpdateOfArgument)�_JoinTargetElement)�_SetupJoinsElement)�Alias)�CTE)�ExecutableReturnsRows)� FromClause)�ScalarSelect)�Subquery�Queryr! �_T)�boundc @ sJ e Zd ZU dZdZded<