MCPcopy Index your code
hub / github.com/PyMySQL/mysqlclient / fetchone

Method fetchone

src/MySQLdb/cursors.py:433–440  ·  view source on GitHub ↗

Fetches a single row from the cursor.

(self)

Source from the content-addressed store, hash-verified

431 return self._get_db().use_result()
432
433 def fetchone(self):
434 """Fetches a single row from the cursor."""
435 self._check_executed()
436 r = self._fetch_row(1)
437 if not r:
438 return None
439 self.rownumber = self.rownumber + 1
440 return r[0]
441
442 def fetchmany(self, size=None):
443 """Fetch up to size rows from the cursor. Result set may be smaller

Callers 11

nextMethod · 0.95
test_fetchoneMethod · 0.45
test_mixedfetchMethod · 0.45
test_nextsetMethod · 0.45
test_DECIMALMethod · 0.45
test_DOUBLEMethod · 0.45
test_BITMethod · 0.45
test_MULTIPOLYGONMethod · 0.45
test_fetchoneMethod · 0.45
test_nextsetMethod · 0.45

Calls 2

_check_executedMethod · 0.80
_fetch_rowMethod · 0.80

Tested by 10

test_fetchoneMethod · 0.36
test_mixedfetchMethod · 0.36
test_nextsetMethod · 0.36
test_DECIMALMethod · 0.36
test_DOUBLEMethod · 0.36
test_BITMethod · 0.36
test_MULTIPOLYGONMethod · 0.36
test_fetchoneMethod · 0.36
test_nextsetMethod · 0.36