MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_core_fetchall

Function test_core_fetchall

examples/performance/large_resultsets.py:106–112  ·  view source on GitHub ↗

Load Core result rows using fetchall.

(n)

Source from the content-addressed store, hash-verified

104
105@Profiler.profile
106def test_core_fetchall(n):
107 """Load Core result rows using fetchall."""
108
109 with engine.connect() as conn:
110 result = conn.execute(Customer.__table__.select().limit(n)).fetchall()
111 for row in result:
112 row.id, row.name, row.description
113
114
115@Profiler.profile

Callers

nothing calls this directly

Calls 5

connectMethod · 0.45
fetchallMethod · 0.45
executeMethod · 0.45
limitMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected