(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.sqlite3mod is None:
         logging.debug("Loading sqlite3 module...")
         self.sqlite3mod = Util.importSpecial("sqlite3")

      logging.debug("Opening database, dbname=%s", self.dbName)
      self.connection = self.sqlite3mod.connect(self.dbName)

      temp_stats = Statistics.Statistics()

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

      self.createStructure(temp_stats)

      if self.resetIdentify:
         self.resetTableIdentify()
def open ( self , ga_engine ) : if self . sqlite3mod is None : logging . debug ( "Loading sqlite3 module..." ) self . sqlite3mod = Util . importSpecial ( "sqlite3" ) logging . debug ( "Opening database, dbname=%s" , self . dbName ) self . connection = self . sqlite3mod . connect ( self . dbName ) temp_stats = Statistics . Statistics ( ) if self . resetDB : self . resetStructure ( Statistics . Statistics ( ) ) self . createStructure ( temp_stats ) if self . resetIdentify : self . resetTableIdentify ( )