Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
lib
/
python3.10
/
dist-packages
/
sqlalchemy
/
sql
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: crud.cpython-310.pyc
o [�h�d � @ 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�REQUIREDa1 Placeholder for the value within a :class:`.BindParameter` which is required to be present when the statement is passed to :meth:`.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}|p|p|pt| j�dk}|tu r!d| _d| _ n|tu r,d| _d| _ n|tu r6|s5d| _nJ d��z,|ttfv rWt| |fi |��W |rV|| _ || _|| _S S W |re|| _ || _|| _d S d S |rr|| _ || _|| _w )Nr FTz(ISINSERT, ISUPDATE, or ISDELETE expected) �isinsert�isupdate�isdelete�len�stackr r r �_get_crud_params)�compiler�stmt�local_stmt_type�kw�restore_isinsert�restore_isupdate�restore_isdelete�should_restore� r �>/usr/local/lib/python3.10/dist-packages/sqlalchemy/sql/crud.py�_setup_crud_params'