parameters: (self, db_module, keywords)
docstring: Creates a database.
docstring_summary: Creates a database.
docstring_tokens: Creates a database .
function: 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
function_tokens: 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