Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/psycopg2/__pycache__/ |
Upload File : |
o ��a� � @ s\ d Z ddlZddlmZ G dd� dej�ZG dd� d�ZG dd � d e�ZG d d� de�ZdS )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 �//usr/lib/python3/dist-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 sZ t |�| _t |�| _d| _|| _|| _g | _i | _i | _d| _ t | j�D ]}| �� q$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__'