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

Method fetchall_unbuffered

pymysql/cursors.py:465–471  ·  view source on GitHub ↗

Fetch all, implemented as a generator, which isn't to standard, however, it doesn't make sense to return everything in a list, as that would use ridiculous memory for large result sets.

(self)

Source from the content-addressed store, hash-verified

463 return list(self.fetchall_unbuffered())
464
465 def fetchall_unbuffered(self):
466 """
467 Fetch all, implemented as a generator, which isn't to standard,
468 however, it doesn't make sense to return everything in a list, as that
469 would use ridiculous memory for large result sets.
470 """
471 return iter(self.fetchone, None)
472
473 def fetchmany(self, size=None):
474 """Fetch many."""

Callers 2

fetchallMethod · 0.95

Calls

no outgoing calls

Tested by 1