Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/sqlalchemy/pool/__pycache__/dbapi_proxy.cpython-39.pyc
Ðазад
a _�h� � @ s\ d Z ddlmZ ddlmZ ddlmZ i Ze�dd�dd � �Zd d� Z G dd � d e �ZdS )z�DBAPI proxy utility. Provides transparent connection pooling on top of a Python DBAPI. This is legacy SQLAlchemy functionality that is not typically used today. � )� QueuePool� )�util)� threadingz1.3zYThe :func:`.pool.manage` function is deprecated, and will be removed in a future release.c K s: z t | W S ty4 t �| t| fi |��� Y S 0 dS )aH Return a proxy for a DB-API module that automatically pools connections. Given a DB-API 2.0 module and pool management parameters, returns a proxy for the module that will automatically pool connections, creating new connection pools for each distinct set of connection arguments sent to the decorated module's connect() function. :param module: a DB-API 2.0 database module :param poolclass: the class used by the pool module to provide pooling. Defaults to :class:`.QueuePool`. :param \**params: will be passed through to *poolclass* N)�proxies�KeyError� setdefault�_DBProxy)�module�params� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/sqlalchemy/pool/dbapi_proxy.py�manage s r c C s"