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

Method fetchmany

MySQLdb/cursors.py:438–446  ·  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

436 return r[0]
437
438 def fetchmany(self, size=None):
439 """Fetch up to size rows from the cursor. Result set may be smaller
440 than size. If size is not defined, cursor.arraysize is used."""
441 self._check_executed()
442 r = self._fetch_row(size or self.arraysize)
443 self.rownumber = self.rownumber + len(r)
444 if not r:
445 self._warning_check()
446 return r
447
448 def fetchall(self):
449 """Fetchs all available rows from the cursor."""

Callers 3

fetchmanyDictMethod · 0.45
test_fetchmanyMethod · 0.45
test_mixedfetchMethod · 0.45

Calls 3

_check_executedMethod · 0.80
_fetch_rowMethod · 0.80
_warning_checkMethod · 0.80

Tested by 2

test_fetchmanyMethod · 0.36
test_mixedfetchMethod · 0.36