Return the next record from the current result set. Return `!None` the result set is finished. :rtype: Row | None, with Row defined by `row_factory`
(self)
| 237 | return self |
| 238 | |
| 239 | def fetchone(self) -> Row | None: |
| 240 | class="st">""" |
| 241 | Return the next record from the current result set. |
| 242 | |
| 243 | Return `!None` the result set is finished. |
| 244 | |
| 245 | :rtype: Row | None, with Row defined by `row_factory` |
| 246 | class="st">""" |
| 247 | self._fetch_pipeline() |
| 248 | res = self._check_result_for_fetch() |
| 249 | if self._pos < res.ntuples: |
| 250 | record = self._tx.load_row(self._pos, self._make_row) |
| 251 | self._pos += 1 |
| 252 | return record |
| 253 | return None |
| 254 | |
| 255 | def fetchmany(self, size: int = 0) -> list[Row]: |
| 256 | class="st">""" |