Documentation and tests for table.drop() method

This commit is contained in:
Simon Willison 2019-07-28 14:22:12 +03:00
commit 535a5ea476
3 changed files with 19 additions and 1 deletions

View file

@ -621,7 +621,7 @@ class Table:
return self
def drop(self):
return self.db.conn.execute("DROP TABLE {}".format(self.name))
self.db.conn.execute("DROP TABLE {}".format(self.name))
def guess_foreign_table(self, column):
column = column.lower()