MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / fetchmany

Method fetchmany

src/MySQLdb/cursors.py:442–448  ·  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

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

Callers 2

test_fetchmanyMethod · 0.45
test_mixedfetchMethod · 0.45

Calls 2

_check_executedMethod · 0.80
_fetch_rowMethod · 0.80

Tested by 2

test_fetchmanyMethod · 0.36
test_mixedfetchMethod · 0.36