예제 #1
0
 def addMysqlWithDefault(self, cbAndEvt):
     dbManager = MySqlManager()
     if dbManager.initMySqlWithDatabase(appconfig.dbhost, appconfig.dbport, appconfig.dbuser, appconfig.dbpassword, appconfig.dbname, cbAndEvt) == True:
         self.dbManagerMap[scode] = dbManager
         return True
     return False
예제 #2
0
 def addMySql(self, scode, host, port, user, passwd, dbname, cbAndEvt):
     dbManager = MySqlManager()
     if dbManager.initMySqlWithDatabase(host, port, user, passwd, dbname, cbAndEvt) == True:
         self.dbManagerMap[scode] = dbManager
         return True
     return False