MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / fetchone

Method fetchone

MySQLdb/cursors.py:363–370  ·  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

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

Callers

nothing calls this directly

Calls 1

_check_executedMethod · 0.80

Tested by

no test coverage detected