Fetches a single row from the cursor.
(self)
| 426 | def _get_result(self): return self._get_db().use_result() |
| 427 | |
| 428 | def fetchone(self): |
| 429 | """Fetches a single row from the cursor.""" |
| 430 | self._check_executed() |
| 431 | r = self._fetch_row(1) |
| 432 | if not r: |
| 433 | self._warning_check() |
| 434 | return None |
| 435 | self.rownumber = self.rownumber + 1 |
| 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 |