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

Method close

pymysql/cursors.py:416–428  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

414 return row
415
416 def close(self):
417 conn = self.connection
418 if conn is None:
419 return
420
421 if self._result is not None and self._result is conn._result:
422 self._result._finish_unbuffered_query()
423
424 try:
425 while self.nextset():
426 pass
427 finally:
428 self.connection = None
429
430 __del__ = close
431

Callers

nothing calls this directly

Calls 2

nextsetMethod · 0.95

Tested by

no test coverage detected