def execute(self, args):
        engine = self._get_engine(args)

        if engine.dialect.has_table(engine.connect(), 'install_state'):
            drop_all(engine)

            if self.verbose:
                self.logger.debug('Successfully deleted the ODB')
            else:
                self.logger.info('OK')
        else:
            self.logger.error('No ODB found')
            return self.SYS_ERROR.NO_ODB_FOUND
Beispiel #2
0
    def execute(self, args):
        engine = self._get_engine(args)

        if engine.dialect.has_table(engine.connect(), 'install_state'):
            drop_all(engine)

            if self.verbose:
                self.logger.debug('Successfully deleted the ODB')
            else:
                self.logger.info('OK')
        else:
            self.logger.error('No ODB found')
            return self.SYS_ERROR.NO_ODB_FOUND
Beispiel #3
0
    def execute(self, args):
        engine = self._get_engine(args)
        drop_all(engine)

        print("\nSuccessfully dropped the ODB.")