Fetches a single row from the cursor. None indicates that no more rows are available.
(self)
| 361 | self._result = None |
| 362 | |
| 363 | def fetchone(self): |
| 364 | """Fetches a single row from the cursor. None indicates that |
| 365 | no more rows are available.""" |
| 366 | self._check_executed() |
| 367 | if self.rownumber >= len(self._rows): return None |
| 368 | result = self._rows[self.rownumber] |
| 369 | self.rownumber = self.rownumber+1 |
| 370 | return result |
| 371 | |
| 372 | def fetchmany(self, size=None): |
| 373 | """Fetch up to size rows from the cursor. Result set may be smaller |
nothing calls this directly
no test coverage detected