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

Method fetchone

pymysql/cursors.py:286–293  ·  view source on GitHub ↗

Fetch the next row.

(self)

Source from the content-addressed store, hash-verified

284 return args
285
286 def fetchone(self):
287 """Fetch the next row."""
288 self._check_executed()
289 if self._rows is None or self.rownumber >= len(self._rows):
290 return None
291 result = self._rows[self.rownumber]
292 self.rownumber += 1
293 return result
294
295 def fetchmany(self, size=None):
296 """Fetch several rows."""

Callers 15

__next__Method · 0.95
realTestPamAuthMethod · 0.45
test_largedataMethod · 0.45
test_autocommitMethod · 0.45
test_select_dbMethod · 0.45
test_init_commandMethod · 0.45
test_datatypesMethod · 0.45
test_dictMethod · 0.45
test_stringMethod · 0.45

Calls 1

_check_executedMethod · 0.95

Tested by 15

realTestPamAuthMethod · 0.36
test_largedataMethod · 0.36
test_autocommitMethod · 0.36
test_select_dbMethod · 0.36
test_init_commandMethod · 0.36
test_datatypesMethod · 0.36
test_dictMethod · 0.36
test_stringMethod · 0.36
test_integerMethod · 0.36