Logo Search packages:      
Sourcecode: zope-mysqlda version File versions  Download package

def ZMySQLDA::db::DBPool::__init__ (   self,
  db_cls,
  create_db = False,
  use_unicode = False 
)

Set transaction managed DB class for use in pool.

Definition at line 181 of file db.py.

00181                                                                   :
        """ Set transaction managed DB class for use in pool.
        """
        self.DB = db_cls
        # pool of one db object/thread
        self._db_pool = {}
        self._db_lock = allocate_lock()
        # auto-create db if not present on server
        self._create_db = create_db
        # unicode settings
        self.use_unicode = use_unicode

    def __call__(self, connection):


Generated by  Doxygen 1.6.0   Back to index