Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django_pooled-HEAD/psycopg2/base.py   django_pooled(Download)
from django_pooled.base import PoolKey, PoolObject, PoolReleaser, CreationWrapper, pool
from django.db.backends.postgresql_psycopg2.base import DatabaseWrapper as DjangoDBWrapper
import psycopg2
class DatabaseWrapper(DjangoDBWrapper):
        # Pool releaser is needed to break the limitation that objects with
        # reference cycles + __del__ do not get garbage collected.
        self.pool_releaser = PoolReleaser()
        # Test databases can't be dropped if we don't close the connections for real
        # before doing the drop. CreationWrapper handles closing all connections just