MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / scroll

Method scroll

pymysql/cursors.py:314–325  ·  view source on GitHub ↗
(self, value, mode="relative")

Source from the content-addressed store, hash-verified

312 return result
313
314 def scroll(self, value, mode="relative"):
315 self._check_executed()
316 if mode == "relative":
317 r = self.rownumber + value
318 elif mode == "absolute":
319 r = value
320 else:
321 raise err.ProgrammingError("unknown scroll mode %s" % mode)
322
323 if not (0 <= r < len(self._rows)):
324 raise IndexError("out of range")
325 self.rownumber = r
326
327 def _query(self, q):
328 conn = self._get_db()

Callers

nothing calls this directly

Calls 1

_check_executedMethod · 0.95

Tested by

no test coverage detected