示例#1
0
 def write_to_database(self, statements):
     """
         Call to write the statements to the database.
     """
     try:
         dba = DatabaseAccess(self.config)
         dba.write_to_database(statements)
     except Exception as ex:
         print Error.WRITE_TO_DATABASE_CORE, ex
     finally:
         dba = None
示例#2
0
 def write_to_database(self, statements):
     """
         Call to write the statements to the database.
     """
     try:
         dba = DatabaseAccess(self.config)
         dba.write_to_database(statements)
     except Exception as ex:
         print Error.WRITE_TO_DATABASE_CORE, ex
     finally:
         dba = None