MCPcopy Create free account
hub / github.com/effect-app/libs / executeStream

Function executeStream

repos/effect/packages/sql/sqlite-do/src/SqliteClient.ts:255–264  ·  view source on GitHub ↗
(sql, params, transformRows)

Source from the content-addressed store, hash-verified

253 ? Effect.map(runStatement(sql, params), transformRows)
254 : runStatement(sql, params)
255 },
256 executeStream(sql, params, transformRows) {
257 return Stream.suspend(() => {
258 const iterator = runIterator(sql, params)
259 return Stream.fromIteratorSucceed(iterator, 128)
260 }).pipe(
261 transformRows
262 ? Stream.mapArray((chunk) => transformRows(chunk) as any)
263 : identity
264 )
265 }
266 })
267 })

Callers

nothing calls this directly

Calls 2

runIteratorFunction · 0.85
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…