MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / fetchone

Method fetchone

src/MySQLdb/cursors.py:369–377  ·  view source on GitHub ↗

Fetches a single row from the cursor. None indicates that no more rows are available.

(self)

Source from the content-addressed store, hash-verified

367 self._result = None
368
369 def fetchone(self):
370 """Fetches a single row from the cursor. None indicates that
371 no more rows are available."""
372 self._check_executed()
373 if self.rownumber >= len(self._rows):
374 return None
375 result = self._rows[self.rownumber]
376 self.rownumber = self.rownumber + 1
377 return result
378
379 def fetchmany(self, size=None):
380 """Fetch up to size rows from the cursor. Result set may be smaller

Callers

nothing calls this directly

Calls 1

_check_executedMethod · 0.80

Tested by

no test coverage detected