(self, ga_engine)
Open the database connection

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
Open the database connection
Open the database connection
def open(self, ga_engine):
      """ Open the database connection

      :param ga_engine: the GA Engine

      .. versionchanged:: 0.6
         The method now receives the *ga_engine* parameter.
      """
      if self.mysqldbmod is None:
         logging.debug("Loading MySQLdb module...")
         self.mysqldbmod = Util.importSpecial("MySQLdb")

      logging.debug("Opening database, host=%s", self.host)
      self.connection = self.mysqldbmod.connect(host=self.host, user=self.user,
                                                passwd=self.passwd, db=self.db,
                                                port=self.port)
      temp_stats = Statistics.Statistics()
      self.createStructure(temp_stats)

      if self.resetDB:
         self.resetStructure(Statistics.Statistics())

      if self.resetIdentify:
         self.resetTableIdentify()
def open ( self , ga_engine ) : if self . mysqldbmod is None : logging . debug ( "Loading MySQLdb module..." ) self . mysqldbmod = Util . importSpecial ( "MySQLdb" ) logging . debug ( "Opening database, host=%s" , self . host ) self . connection = self . mysqldbmod . connect ( host = self . host , user = self . user , passwd = self . passwd , db = self . db , port = self . port ) temp_stats = Statistics . Statistics ( ) self . createStructure ( temp_stats ) if self . resetDB : self . resetStructure ( Statistics . Statistics ( ) ) if self . resetIdentify : self . resetTableIdentify ( )