Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/sqlalchemy/sql/__pycache__/crud.cpython-39.pyc
Ðазад
a _�h[f � @ s" d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ e�d d �Ze�d�Z e�d�Z e�d �Zdd� Zdd� Z d:dd�Zdd� Zdd� Zdd� Zdd� Zdd� Zd;d d!�Zd<d"d#�ZG d$d%� d%ej�Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� Zd6d7� Z d8d9� Z!dS )=ziFunctions used by compiler.py to determine the parameters rendered within INSERT and UPDATE statements. � N� )�dml)�elements� )�exc)�util�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. �ISINSERT�ISUPDATE�ISDELETEc K s� | j }| j}| j}|p2|p2|p2t| j�dkp2d|v }|tu rJd| _d| _ n6|tu r`d| _d| _ n |tu rt|s�d| _nds�J d��zP|ttfv r�t| |fi |��W |r�|| _ || _|| _S W |r�|| _ || _|| _n|r�|| _ || _|| _0 d S )Nr Zvisiting_cteFTz(ISINSERT, ISUPDATE, or ISDELETE expected) �isinsert�isupdateZisdelete�len�stackr r r �_get_crud_params)�compiler�stmtZlocal_stmt_type�kwZrestore_isinsertZrestore_isupdateZrestore_isdeleteZshould_restore� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/sqlalchemy/sql/crud.py�_setup_crud_params'