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

Method kill

pymysql/connections.py:601–604  ·  view source on GitHub ↗
(self, thread_id)

Source from the content-addressed store, hash-verified

599 return self._affected_rows
600
601 def kill(self, thread_id):
602 if not isinstance(thread_id, int):
603 raise TypeError("thread_id must be an integer")
604 self.query(f"KILL {thread_id:d}")
605
606 def ping(self, reconnect=False):
607 """

Callers 1

test_issue_36Method · 0.80

Calls 1

queryMethod · 0.95

Tested by 1

test_issue_36Method · 0.64