MCPcopy
hub / github.com/PyMySQL/PyMySQL / fetchall

Method fetchall

pymysql/cursors.py:302–312  ·  view source on GitHub ↗

Fetch all the rows.

(self)

Source from the content-addressed store, hash-verified

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

Callers 15

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 15

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