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

Method close

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

nextsetMethod · 0.95

Tested by

no test coverage detected