MCPcopy Index your code
hub / github.com/Effect-TS/effect / executeStream

Function executeStream

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

Source from the content-addressed store, hash-verified

138 : runStatement(sql, params)
139 },
140 executeStream(sql, params, transformRows) {
141 return Stream.suspend(() => {
142 const iterator = runIterator(sql, params)
143 return Stream.fromIteratorSucceed(iterator, 16)
144 }).pipe(
145 transformRows
146 ? Stream.mapChunks((chunk) =>
147 Chunk.unsafeFromArray(
148 transformRows(Chunk.toReadonlyArray(chunk))
149 )
150 )
151 : identity
152 )
153 }
154 })
155 })
156

Callers

nothing calls this directly

Calls 2

runIteratorFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected