Exemple #1
0
 def get_db_version(self, conn_string):
     if isinstance(conn_string, dict):
         conn_string = self._build_connection_string(conn_string)
     service = SeriesService(conn_string)
     #if not self.version:
     try:
         self.version = service.get_db_version()
     except Exception as e:
         logger.error("Exception: %s" % e.message)
         return None
     return self.version
 def get_db_version(self, conn_string):
     if isinstance(conn_string, dict):
         conn_string = self._build_connection_string(conn_string)
     service = SeriesService(conn_string)
     #if not self.version:
     try:
         self.version = service.get_db_version()
     except Exception as e:
         logger.error("Exception: %s" % e.message)
         return None
     return self.version
 def get_db_version(self, conn_dict):
     conn_string = self.__build_connection_string(conn_dict)
     service = SeriesService(conn_string)
     if not self.version:
         self.version = service.get_db_version()
     return self.version
Exemple #4
0
 def get_db_version(self, conn_dict):
     conn_string = self.__build_connection_string(conn_dict)
     service = SeriesService(conn_string)
     if not self.version:
         self.version = service.get_db_version()
     return self.version