%PDF- %PDF-
Direktori : /opt/alt/python27/lib64/python2.7/site-packages/psycopg2/ |
Current File : //opt/alt/python27/lib64/python2.7/site-packages/psycopg2/pool.pyc |
� Tc @ s� d Z d d l Z d d l j Z d e j f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d e f d � � YZ d S( s` Connection pooling for psycopg2 This module implements thread-safe (and not) connection pools. i����Nt PoolErrorc B s e Z RS( ( t __name__t __module__( ( ( s@ /opt/alt/python27/lib64/python2.7/site-packages/psycopg2/pool.pyR s t AbstractConnectionPoolc B sP e Z d Z d � Z d d � Z d � Z d d � Z d e d � Z d � Z RS( s Generic key-based pooling code.c O s� t | � | _ t | � | _ t | _ | | _ | | _ g | _ i | _ i | _ d | _ x! t | j � D] } | j � qm Wd S( s� 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. i N( t intt minconnt maxconnt Falset closedt _argst _kwargst _poolt _usedt _rusedt _keyst ranget _connect( t selfR R t argst kwargst i( ( s@ /opt/alt/python27/lib64/python2.7/site-packages/psycopg2/pool.pyt __init__&