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

Method _nextset

pymysql/cursors.py:90–102  ·  view source on GitHub ↗

Get the next query set.

(self, unbuffered=False)

Source from the content-addressed store, hash-verified

88 """Does nothing, required by DB API."""
89
90 def _nextset(self, unbuffered=False):
91 """Get the next query set."""
92 conn = self._get_db()
93 current_result = self._result
94 if current_result is None or current_result is not conn._result:
95 return None
96 if not current_result.has_next:
97 return None
98 self._result = None
99 self._clear_result()
100 conn.next_result(unbuffered=unbuffered)
101 self._do_get_result()
102 return True
103
104 def nextset(self):
105 return self._nextset(False)

Callers 2

nextsetMethod · 0.95
nextsetMethod · 0.80

Calls 4

_get_dbMethod · 0.95
_clear_resultMethod · 0.95
_do_get_resultMethod · 0.95
next_resultMethod · 0.80

Tested by

no test coverage detected