MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / drop_table

Method drop_table

pymysql/tests/base.py:107–112  ·  view source on GitHub ↗
(self, connection, tablename)

Source from the content-addressed store, hash-verified

105 self.addCleanup(self.drop_table, connection, tablename)
106
107 def drop_table(self, connection, tablename):
108 cursor = connection.cursor()
109 with warnings.catch_warnings():
110 warnings.simplefilter("ignore")
111 cursor.execute(f"drop table if exists `{tablename}`")
112 cursor.close()

Callers

nothing calls this directly

Calls 3

cursorMethod · 0.80
executeMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected