MCPcopy Index your code
hub / github.com/quentinhardy/odat / dropIndex

Method dropIndex

OracleDatabase.py:609–623  ·  view source on GitHub ↗

returns True if dropped. Otherwise returns False

(self, indexName, schema=None)

Source from the content-addressed store, hash-verified

607 return True
608
609 def dropIndex(self, indexName, schema=None):
610 '''
611 returns True if dropped. Otherwise returns False
612 '''
613 indexName = indexName.upper()
614 if schema==None : REQUEST_DROP_INDEX = "DROP INDEX {0}".format(indexName)
615 else: REQUEST_DROP_INDEX = "DROP INDEX {1}.{0}".format(indexName, schema)
616 logging.info("Trying to drop the index named '{0}'".format(indexName))
617 status = self.__execPLSQL__(REQUEST_DROP_INDEX)
618 if isinstance(status, Exception):
619 logging.info("Impossible to drop the index '{0}': '{1}'".format(indexName, self.cleanError(status)))
620 return False
621 else :
622 logging.debug("The stored function '{0}' has been dropped".format(indexName))
623 return True
624
625 def dropTrigger(self, triggerName, schema=None):
626 '''

Calls 2

__execPLSQL__Method · 0.95
cleanErrorMethod · 0.95

Tested by

no test coverage detected