MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / iterrows

Method iterrows

lib/sqlalchemy/engine/_result_cy.py:311–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309 uniques, strategy = self._unique_strategy
310
311 def iterrows() -> Iterator[_R]:
312 for raw_row in self._fetchiter_impl():
313 row = (
314 make_row(raw_row) if make_row is not None else raw_row
315 )
316 hashed = strategy(row) if strategy is not None else row
317 if hashed in uniques:
318 continue
319 uniques.add(hashed)
320 if post_creational_filter is not None:
321 row = post_creational_filter(row)
322 yield row
323
324 else:
325

Callers

nothing calls this directly

Calls 2

_fetchiter_implMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected