MCPcopy Index your code
hub / github.com/clips/pattern / _delete

Method _delete

pattern/db/__init__.py:655–663  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

653 repr(self.tables.keys()))
654
655 def _delete(self):
656 # No warning is issued, seems a bad idea to document the method.
657 # Anyone wanting to delete an entire database should use an editor.
658 if self.type == MYSQL:
659 self.execute("drop database `%s`" % self.name, commit=True)
660 self.disconnect()
661 if self.type == SQLITE:
662 self.disconnect()
663 os.unlink(self.name)
664
665 def __delete__(self):
666 try:

Callers 2

runTestMethod · 0.80
runTestMethod · 0.80

Calls 2

executeMethod · 0.95
disconnectMethod · 0.95

Tested by 2

runTestMethod · 0.64
runTestMethod · 0.64