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)
| 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.""" |
nothing calls this directly
no test coverage detected