Edit File: dbapi_proxy.cpython-37.pyc
B ��4]� � @ 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 s2 yt | S tk r, t �| t| f|��S X 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 �N/opt/alt/python37/lib64/python3.7/site-packages/sqlalchemy/pool/dbapi_proxy.py�manage s r c C s&