HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/engine/__pycache__/util.cpython-37.pyc
B

��4]u	�@sTddlmZdd�Zdd�ZyddlmZWn"ek
rNe��e��YnXdS)	�)�utilcstj�fdd��}|S)z�Decorator, memoize a function in a connection.info stash.

    Only applicable to functions which take no arguments other than a
    connection.  The memo will be stored in ``connection.info[key]``.
    cs@|��}y
|j�Stk
r:|||�|j�<}|SXdS)N)�connect�info�KeyError)�fn�selfZ
connection�val)�key��I/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/engine/util.py�	decorateds
z%connection_memoize.<locals>.decorated)r�	decorator)r	rr
)r	r�connection_memoizes	rcCsdd�}t�S)NcSs�|s|r|gSgSn�t|�dkr||d}t|ttf�rb|rVt|dd�rZt|dd�sZ|S|gSq�t|d�rr|gS|ggSn&t|dd�r�t|dd�s�|S|gSdS)aGiven arguments from the calling form \*multiparams, \**params,
        return a list of bind parameter structures, usually a list of
        dictionaries.

        In the case of 'raw' execution which accepts positional parameters,
        it may be a list of tuples or lists.

        ���__iter__�strip�keysN)�len�
isinstance�list�tuple�hasattr)Zmultiparams�paramsZzeror
r
r�_distill_paramss&


z$py_fallback.<locals>._distill_params)�locals)rr
r
r�py_fallbacks+rr)rN)	�rrrZsqlalchemy.cutilsr�ImportError�globals�updater
r
r
r�<module>s/