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

Method fetchall

src/MySQLdb/cursors.py:388–396  ·  view source on GitHub ↗

Fetches all available rows from the cursor.

(self)

Source from the content-addressed store, hash-verified

386 return result
387
388 def fetchall(self):
389 """Fetches all available rows from the cursor."""
390 self._check_executed()
391 if self.rownumber:
392 result = self._rows[self.rownumber :]
393 else:
394 result = self._rows
395 self.rownumber = len(self._rows)
396 return result
397
398 def scroll(self, value, mode="relative"):
399 """Scroll the cursor in the result set to a new position according

Callers

nothing calls this directly

Calls 1

_check_executedMethod · 0.80

Tested by

no test coverage detected