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

Method fetchall

pymysql/cursors.py:307–317  ·  view source on GitHub ↗

Fetch all the rows.

(self)

Source from the content-addressed store, hash-verified

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