MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / fetchmany

Method fetchmany

MySQLdb/cursors.py:372–379  ·  view source on GitHub ↗

Fetch up to size rows from the cursor. Result set may be smaller than size. If size is not defined, cursor.arraysize is used.

(self, size=None)

Source from the content-addressed store, hash-verified

370 return result
371
372 def fetchmany(self, size=None):
373 """Fetch up to size rows from the cursor. Result set may be smaller
374 than size. If size is not defined, cursor.arraysize is used."""
375 self._check_executed()
376 end = self.rownumber + (size or self.arraysize)
377 result = self._rows[self.rownumber:end]
378 self.rownumber = min(end, len(self._rows))
379 return result
380
381 def fetchall(self):
382 """Fetchs all available rows from the cursor."""

Callers

nothing calls this directly

Calls 1

_check_executedMethod · 0.80

Tested by

no test coverage detected