MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / fetchmany

Method fetchmany

test/perf/compiled_extensions/result.py:370–376  ·  view source on GitHub ↗
(self, size=None)

Source from the content-addressed store, hash-verified

368 return None
369
370 def fetchmany(self, size=None):
371 if size is None:
372 return self.fetchall()
373 else:
374 ret = self._rows[:size]
375 self._rows[:size] = []
376 return ret
377
378 def fetchall(self):
379 ret = self._rows

Callers 14

result_oneFunction · 0.45
go_manyMethod · 0.45
go_many_uqMethod · 0.45
go_scalar_manyMethod · 0.45
test_many_then_allMethod · 0.45
test_scalar_none_manyMethod · 0.45
test_columnsMethod · 0.45

Calls 1

fetchallMethod · 0.95