관리-도구
편집 파일: pool.cpython-37.opt-1.pyc
B *��]� � @ s^ d Z ddlZddlmZ G dd� dej�ZG dd� de�ZG dd � d e�ZG d d� de�Z dS )z`Connection pooling for psycopg2 This module implements thread-safe (and not) connection pools. � N)� extensionsc @ s e Zd ZdS )� PoolErrorN)�__name__� __module__�__qualname__� r r �@/opt/alt/python37/lib64/python3.7/site-packages/psycopg2/pool.pyr s r c @ sF e Zd ZdZdd� Zddd�Zdd� Zdd d �Zddd �Zdd� Z dS )�AbstractConnectionPoolzGeneric key-based pooling code.c O s^ t |�| _t |�| _d| _|| _|| _g | _i | _i | _d| _ xt | j�D ]}| �� qJW dS )z�Initialize the connection pool. New 'minconn' connections are created immediately calling 'connfunc' with given parameters. The connection pool will support a maximum of about 'maxconn' connections. Fr N)�int�minconn�maxconn�closed�_args�_kwargs�_pool�_used�_rused�_keys�range�_connect)�selfr r �args�kwargs�ir r r �__init__&