MCPcopy
hub / github.com/PyMySQL/PyMySQL / fetchone

Method fetchone

pymysql/cursors.py:281–288  ·  view source on GitHub ↗

Fetch the next row.

(self)

Source from the content-addressed store, hash-verified

279 return args
280
281 def fetchone(self):
282 """Fetch the next row."""
283 self._check_executed()
284 if self._rows is None or self.rownumber >= len(self._rows):
285 return None
286 result = self._rows[self.rownumber]
287 self.rownumber += 1
288 return result
289
290 def fetchmany(self, size=None):
291 """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