9x>` j d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ej d d
Z ej d Z ej d Z
ej d
Zd Zd Z
d&dZd Zd Zd Zd Zd Zd'dZd'dZ G d dej Zd Zd Zd Zd Zd Zd! Zd" Zd# Zd$ Z d% Z!dS )(ziFunctions used by compiler.py to determine the parameters rendered
within INSERT and UPDATE statements.
N )dml)elements )exc)utilREQUIREDa8
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.
ISINSERTISUPDATEISDELETEc | j }| j }| j }|p|p|pt | j dk pd|v }|t
u rd| _ d| _ n5|t u rd| _ d| _ n|t u r
|sd| _ n
J d |t
t fv r&t | |fi ||r|| _ || _ || _ S S |r|| _ || _ || _ d S d S # |r|| _ || _ || _ w xY w)Nr visiting_cteFTz(ISINSERT, ISUPDATE, or ISDELETE expected) isinsertisupdateisdeletelenstackr
r r _get_crud_params)compilerstmtlocal_stmt_typekwrestore_isinsertrestore_isupdaterestore_isdeleteshould_restores g/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/sqlalchemy/sql/crud.py_setup_crud_paramsr ' st (((
A- A1A x~" R (""! H $ $ ! H $ $ % $H@@@@u1x222#Hd99b99 1 0H 0H 0H 1 3 1 0H 0H 0H 1 1> 1 0H 0H 0H0000s C C1c h
g _ g _ g _ g _ j |j fd|j j D S |j r|j d
n|j
t | \ }} j i }n!t
fd j D }g }
t |
|| i } j r|j
r
rt |
||||| j r|j rt# ||| |||| nt% ||| |||| |ry
rwt' | fd
D | }|r4t- j dd d |D z |j rt3 ||| }|S ) aP create a set of tuples representing column/string pairs for use
in an INSERT or UPDATE statement.
Also generates the Compiled object's postfetch, prefetch, and
returning column collections, used for default handling and ultimately
populating the ResultProxy's prefetch_cols() and postfetch_cols()
collections.
Nc : g | ]}|t |d d fS )NT)required)_create_bind_param).0cr s r