MCPcopy Create free account
hub / github.com/Effect-TS/effect / executeStream

Function executeStream

packages/sql-sqlite-do/src/SqliteClient.ts:146–159  ·  view source on GitHub ↗
(sql, params, transformRows)

Source from the content-addressed store, hash-verified

144 : runStatement(sql, params)
145 },
146 executeStream(sql, params, transformRows) {
147 return Stream.suspend(() => {
148 const iterator = runIterator(sql, params)
149 return Stream.fromIteratorSucceed(iterator, 16)
150 }).pipe(
151 transformRows
152 ? Stream.mapChunks((chunk) =>
153 Chunk.unsafeFromArray(
154 transformRows(Chunk.toReadonlyArray(chunk))
155 )
156 )
157 : identity
158 )
159 }
160 })
161 })
162

Callers

nothing calls this directly

Calls 2

runIteratorFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected