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)
| 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.""" |