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

Method execute

packages/sql/pg/src/PgClient.ts:456–464  ·  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

454 }
455
456 execute(
457 sql: string,
458 params: ReadonlyArray<unknown>,
459 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
460 ) {
461 return transformRows
462 ? Effect.map(this.run(sql, params), transformRows)
463 : this.run(sql, params)
464 }
465 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
466 return this.connection.query(sql, params)
467 }

Callers 15

NpmPromote.tsFile · 0.45
dispatchFunction · 0.45
deployFunction · 0.45
setStatusFunction · 0.45
closeIssueFunction · 0.45
upsertFunction · 0.45
runFunction · 0.45
executeUnpreparedFunction · 0.45
executeUnpreparedFunction · 0.45
executeUnpreparedFunction · 0.45
sendFunction · 0.45
downloadFunction · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.45

Tested by 4

wrapConnectionFunction · 0.36
chargeFunction · 0.36
echoFunction · 0.36
callFunction · 0.36