(self, db_module, keywords)
Creates a database.
Creates a database.
Creates a database .
def __init__(self, db_module, keywords):
        """Creates a database.
        """
        self.db_module = db_module
        self.keywords = keywords
        
        self._ctx = threadeddict()
        # flag to enable/disable printing queries
        self.printing = config.get('debug', False)
        self.supports_multiple_insert = False
        
        try:
            import DBUtils
            # enable pooling if DBUtils module is available.
            self.has_pooling = True
        except ImportError:
            self.has_pooling = False
            
        # Pooling can be disabled by passing pooling=False in the keywords.
        self.has_pooling = self.keywords.pop('pooling', True) and self.has_pooling
def __init__ ( self , db_module , keywords ) : self . db_module = db_module self . keywords = keywords self . _ctx = threadeddict ( ) # flag to enable/disable printing queries self . printing = config . get ( 'debug' , False ) self . supports_multiple_insert = False try : import DBUtils # enable pooling if DBUtils module is available. self . has_pooling = True except ImportError : self . has_pooling = False # Pooling can be disabled by passing pooling=False in the keywords. self . has_pooling = self . keywords . pop ( 'pooling' , True ) and self . has_pooling