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

Method kill

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

Source from the content-addressed store, hash-verified

589 return self._affected_rows
590
591 def kill(self, thread_id):
592 if not isinstance(thread_id, int):
593 raise TypeError("thread_id must be an integer")
594 self.query(f"KILL {thread_id:d}")
595
596 def ping(self, reconnect=False):
597 """

Callers 1

test_issue_36Method · 0.80

Calls 1

queryMethod · 0.95

Tested by 1

test_issue_36Method · 0.64