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

Method executeRaw

repos/effect/packages/sql/pg/src/PgClient.ts:678–690  ·  view source on GitHub ↗
(sql: string, params: ReadonlyArray<unknown>)

Source from the content-addressed store, hash-verified

676 Array.isArray(result)
677 ? result.map((r) => r.rows ?? [])
678 : result.rows ?? []
679 ))
680 }
681 })
682 })
683 }
684
685 execute(
686 sql: string,
687 params: ReadonlyArray<unknown>,
688 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
689 ) {
690 return transformRows
691 ? Effect.map(this.run(sql, params), transformRows)
692 : this.run(sql, params)
693 }

Callers 5

Client.test.tsFile · 0.45
PgClient.tsFile · 0.45
rawFunction · 0.45
execWithLockConnFunction · 0.45

Calls 4

classifyErrorFunction · 0.70
resumeFunction · 0.50
failMethod · 0.45
succeedMethod · 0.45

Tested by

no test coverage detected