MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / chunks

Method chunks

test/base/test_result.py:1135–1140  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

1133 data = [(1, 1, 1), (2, 1, 2), (1, 1, 1), (1, 3, 2), (4, 1, 2)]
1134
1135 def chunks(num):
1136 while data:
1137 rows = data[0:num]
1138 data[:] = []
1139
1140 yield [row[0] for row in rows]
1141
1142 return chunks
1143

Callers 3

__init__Method · 0.80
yield_perMethod · 0.80
_fetchmany_implMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected