관리-도구
편집 파일: crud.cpython-38.pyc
U -?�f�� � @ s\ d Z ddlmZ ddlZddlZddlmZ 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 ddlm Z ddlm!Z! ddl"m#Z# ddl"m$Z$ dd lm%Z% dd!lm&Z& dd"l'm(Z( e�r�dd#l)m*Z* dd$l)m+Z+ dd%lm,Z, dd&lm-Z- dd'lm.Z. dd(lm/Z/ dd)lm0Z0 dd*lm1Z1 dd+lm2Z2 e&�3d,d-�Z4d.d/d0�d1d2�Z5ed.e6eee6d3f e e6 f Z7ed4e6e6e e6 f Z8ed/e6d3e e6 f Z9ee7 Z:G d5d6� d6e �Z;d7d8d9d:d;d6d<�d=d>�Z<ed�d7d.d;dAd:dBd;dCdD�dEdF��Z=ed7d.d;d;dCdG�dHdF��Z=d�d7d.d;d:d:dBd;dJdD�dKdF�Z=dLdM� Z>d7d8d9dNdO�dPdQ�Z?dRdS� Z@dTdU� ZAdVdW� ZBdXdY� ZCdZd[� ZDd\d]� ZEd^d_� ZFd7d8d/d`dadbdc�ddde�ZGdfdg� ZHed�d7d.dAd;dCdh�didj��ZIed7d.dkd;dldh�dmdj��ZId�d7d.d:dBd;dndo�dpdj�ZIed�d7d.dAd;dCdh�dqdr��ZJed7d.dkd;dldh�dsdr��ZJd�d7d.d:dBd;dndo�dtdr�ZJG dudv� dvej/e �ZKd7d8d4dwdadCdx�dydz�ZLd{d|� ZMd7d8d9d}d~dadd��d�d��ZNd�d�� ZOd�d�� ZPd�d�� ZQdS )�ziFunctions used by compiler.py to determine the parameters rendered within INSERT and UPDATE statements. � )�annotationsN)�Any)�Callable)�cast)�Dict)�Iterable)�List)�MutableMapping)� NamedTuple)�Optional)�overload)�Sequence)�Set)�Tuple)� TYPE_CHECKING)�Union� )� coercions)�dml)�elements)�roles)�_DefaultDescriptionTuple)�isinsert)�ColumnClause)�default_is_clause_element)�default_is_sequence)�Select)�TableClause� )�exc)�util)�Literal)�_BindNameForColProtocol)�SQLCompiler)�_DMLColumnElement)�DMLState)� ValuesBase)� ColumnElement)�KeyedColumnElement)�_SQLExprDefault)�Column�REQUIREDa8 Placeholder for the value within a :class:`.BindParameter` which is required to be present when the statement is passed to :meth:`_engine.Connection.execute`. This symbol is typically used when a :func:`_expression.insert` or :func:`_expression.update` statement is compiled without parameter values present. zColumnElement[Any]�ColumnClause[Any])�c�returnc C s t | t�st�d| ����| S )Nz5Can't create DML statement against column expression )� isinstancer r �CompileError)r- � r1 �C/opt/hc_python/lib64/python3.8/site-packages/sqlalchemy/sql/crud.py�_as_dml_columnJ s �r3 r) zKeyedColumnElement[Any]c @ sB e Zd ZU ded<