Ñò
žÅŠKc @ se d Z d d k Z yu d d k Z e i d e i d d ƒ e i d ƒ Z d „ Z y d d k Z e i d ƒ Wn e i
d ƒ n XWnf e j
o? d d k l
Z
l Z l Z d
„ Z e
d e d d
ƒ n d d k Z d „ Z n Xd e i 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 levelt formats% %(asctime)s %(levelname)s %(message)st psycopg2c G s> t i d d i g } | D] } | t | ƒ q ~ ƒ ƒ d S( NR t ( t _loggert debugt joint str( t argst _[1]t x( ( s3 /usr/lib64/python2.6/site-packages/psycopg2/pool.pyt dbg$ s s. installed. Logging using Python logging module( t LOGt DEBUGt INFOc
G sE t d t d d i g } | D] } | t | ƒ q ~ ƒ d ƒ d S( Nt
ZPsycopgDAt R s
( R R
R R ( R R R
( ( s3 /usr/lib64/python2.6/site-packages/psycopg2/pool.pyR . s R t Installeds Logging using Zope's zLOG
c G s! t i i d i | ƒ d ƒ d S( NR s
( t syst stderrt writeR ( R ( ( s3 /usr/lib64/python2.6/site-packages/psycopg2/pool.pyR 5 s t PoolErrorc B s e Z RS( ( t __name__t
__module__( ( ( s3 /usr/lib64/python2.6/site-packages/psycopg2/pool.pyR 9 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 sy | | _ | | _ t | _ | | _ | | _ g | _ h | _ h | _ d | _ x! t
| i ƒ D] } | i ƒ qa 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 minconnt maxconnt Falset closedt _argst _kwargst _poolt _usedt _rusedt _keyst ranget _connect( t selfR R R t kwargst i( ( s3 /usr/lib64/python2.6/site-packages/psycopg2/pool.pyt __init__@ s c C s] t i | i | i Ž } | d j o$ | | i | <| | i t | ƒ