관리-도구
편집 파일: _orm_constructors.cpython-38.pyc
U -?�fm� � ) @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lm Z d d lm Z d dlmZ d dlmZ d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dl m!Z! d dl"m#Z# d dl"m$Z$ d dl"m%Z% d dl"m&Z& dd l m'Z' dd!l m"Z" dd"l(m)Z) dd#l*m+Z+ dd$l,m-Z- dd%l,m.Z. dd&l/m0Z0 dd'l/m1Z1 dd(l2m3Z3 dd)l4m5Z5 dd*l4m6Z6 e�rd d+lm7Z7 d d,lm8Z8 d d-lm9Z9 d d.lm:Z: d d/lm;Z; d d0l<m=Z= d d1lm>Z> d d2lm?Z? d d3lm@Z@ d d4lmAZA d d5lmBZB d d6lmCZC d d7l mDZD dd8l*mEZE dd9l*mFZF dd:l*mGZG dd;l*mHZH dd<l*mIZI dd=l*mJZJ dd>lKmLZL dd?l/mMZM dd@l/mNZN ddAl2mOZO ddBl2mPZP e�QdC�ZRe"jSdDdEdFdG�dHdIdJ�dKdL��ZTd�e-jUe-jUe-jUe-jUe-jUe-jUe1jVdFe-jUdddFdddMdddddde-jUdddFddFde-jUdN�dOdPdQdRdRdSdTdRdRdUdVdRdWdVdXdWdYdZdWdWdVdVd[dSdSd\d]dXdVdXdWd^d_d`da�"dbdc�ZWd�dddde�dWdYdSdXd`df�dgdh�ZXe"jYf didj� dkD ��ddFdFde-jUe-jUe-jUe-jUe-jUe-jUdFdddddl�dmdndWdXdXdodRdRdSdTdRdRdXdXd[dWdpdq�drds��ZZe ddFdFddFe-jUe-jUe-jUe-jUe-jUe-jUdddt� dududWdXdXdvdXdRdRdSdTdRdRd[dWd_dwdx�dydz��Z[e ddFdFddFe-jUe-jUe-jUe-jUe-jUe-jUdddt� d{dudWdXdXdvdXdRdRdSdTdRdRd[dWd_d|dx�d}dz��Z[e ddFdFddFe-jUe-jUe-jUe-jUe-jUe-jUdddt� d~dudWdXdXdvdXdRdRdSdTdRdRd[dWd_d|dx�ddz��Z[d�ddFdFddFe-jUe-jUe-jUe-jUe-jUe-jUdddt� d�dudWdXdXdvdXdRdRdSdTdRdRd[dWd_dwdx�d�dz�Z[d�d�d�dXdXdXdXd�d��d�d��Z\d�ddddddFdddFd�dFe-jUe-jUe-jUe-jUe-jUe-jUd�dFdddFdddddddFdFddFddddd��"d�d�dVd�d�d�dWd�d�dWdXd�dXdRdRd�dTdRdRd�d�dXdXdXd�d�d�d�dXdXdVdXd�d[d�dVd_d�d��&d�d��Z]ddde-jUe-jUe-jUe-jUe-jUe-jUddd��d�dVdSdodRdRd�dTdRdRd[dWd�d�� d�d��Z^d�d�d_d�d��d�d��Z_d_d_d�d��d�d��Z`d�d�d_d�d��d�d��Zad�d_d�d��d�d��ZbddFde-jUe-jUe-jUe-jUe-jUe-jUdFddddd�� dmdndWdXdodRdRdSdTdRdRdXdXd[dWdpd��d�d��Zce'�d� fe-jUe-jUddddd��dmdRdRdXd[dWdpd��d�d��Zed�d��d�d��Zfe5e e d�f Zge d�d�d�dWdXdXd�dĜd�d���Zhe d�d�d�dWdXdXd�dĜd�d���Zhe d�d�d�dWdXdXd�dĜd�d���Zhd�d�d�dWdXdXd�dĜd�d��Zhd�d�d�d�dXd�dXdXdXdWdXd�dҜd�dԄZid�d�d�d�dXdXd�dd�dڄZjd�d�d�d�dXd�dۜd�d݄ZkdS )�� )�annotationsN)�Any)�Callable)� Collection)�Iterable)�NoReturn)�Optional)�overload)�Type)� TYPE_CHECKING)�Union� )� mapperlib)�_O)� Composite)�Synonym)�_AttributeOptions)�MappedColumn)�MappedSQLExpression��AliasOption)�_RelationshipArgumentType)�_RelationshipDeclared)�_RelationshipSecondaryArgument)�RelationshipProperty)�Session��_ORMJoin)�AliasedClass)�AliasedInsp��LoaderCriteriaOption� )�sql)�util��InvalidRequestError)�_no_kw)�_NoArg)�SchemaEventTarget)�_InsertSentinelColumnDefault)�SchemaConst)� FromClause)� Annotated)�Literal)�_EntityType)�_ORMColumnExprArgument)�_CC)�_CompositeAttrType)�PropComparator)�Mapper)�Query)�_LazyLoadArgumentType)�_ORMColCollectionArgument)�_ORMOrderByArgument)�"_RelationshipJoinConditionArgument)�ORMBackrefArgument)�_SessionBind)�_AutoIncrementType)�_ColumnExpressionArgument)�_FromClauseArgument)� _InfoType)�_OnClauseArgument)�_TypeEngineArgument)� ColumnElement)�_ServerDefaultArgument)�_ServerOnUpdateArgument)�Alias)�Subquery�_Tz1.4z�The :class:`.AliasOption` object is not necessary for entities to be matched up to a query that is established via :meth:`.Query.from_statement` and now does nothing.F)Zenable_warningszUnion[Alias, Subquery]r )�alias�returnc C s t | �S )z�Return a :class:`.MapperOption` that will indicate to the :class:`_query.Query` that the main table has been aliased. r )rH � rJ �P/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/orm/_orm_constructors.py�contains_aliasQ s rL �auto)�init�repr�default�default_factory�compare�kw_only�nullable�primary_key�deferred�deferred_group�deferred_raiseload�use_existing_column�name�type_� autoincrement�doc�key�index�unique�info�onupdate�insert_default�server_default�server_onupdate�active_history�quote�system�comment� sort_orderzAOptional[Union[str, _TypeEngineArgument[Any], SchemaEventTarget]]z<Optional[Union[_TypeEngineArgument[Any], SchemaEventTarget]]r) zUnion[_NoArg, bool]z Optional[Any]zUnion[_NoArg, Callable[[], _T]]z<Optional[Union[bool, Literal[SchemaConst.NULL_UNSPECIFIED]]]zOptional[bool]z Optional[str]�boolz"Optional[_TypeEngineArgument[Any]]r<