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

Method fetchall

pymysql/cursors.py:306–316  ·  view source on GitHub ↗

Fetch all the rows.

(self)

Source from the content-addressed store, hash-verified

304 return result
305
306 def fetchall(self):
307 """Fetch all the rows."""
308 self._check_executed()
309 if self._rows is None:
310 return []
311 if self.rownumber:
312 result = self._rows[self.rownumber :]
313 else:
314 result = self._rows
315 self.rownumber = len(self._rows)
316 return result
317
318 def scroll(self, value, mode="relative"):
319 self._check_executed()

Callers 12

test_nextset_errorMethod · 0.45
test_datatypesMethod · 0.45
test_single_tupleMethod · 0.45
_verify_recordsMethod · 0.45
test_SSCursorMethod · 0.45
test_issue_36Method · 0.45
test_issue_79Method · 0.45
test_issue_364Method · 0.45
test_DictCursorMethod · 0.45
test_custom_dictMethod · 0.45

Calls 1

_check_executedMethod · 0.95

Tested by 12

test_nextset_errorMethod · 0.36
test_datatypesMethod · 0.36
test_single_tupleMethod · 0.36
_verify_recordsMethod · 0.36
test_SSCursorMethod · 0.36
test_issue_36Method · 0.36
test_issue_79Method · 0.36
test_issue_364Method · 0.36
test_DictCursorMethod · 0.36
test_custom_dictMethod · 0.36