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

Method executeStream

packages/sql/mysql2/src/MysqlClient.ts:297–306  ·  view source on GitHub ↗
(
        sql: string,
        params: ReadonlyArray<unknown>,
        transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
      )

Source from the content-addressed store, hash-verified

295 : this.run(sql, params, false, "query")
296 }
297 executeStream(
298 sql: string,
299 params: ReadonlyArray<unknown>,
300 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
301 ) {
302 const stream = queryStream(this.conn as any, sql, params)
303 return transformRows
304 ? Stream.mapArray(stream, (_) => transformRows(_) as any)
305 : stream
306 }
307 }
308
309 const pool = options.url

Callers

nothing calls this directly

Calls 1

queryStreamFunction · 0.85

Tested by

no test coverage detected