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

Method execute

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

195 }
196
197 execute(
198 sql: string,
199 params: ReadonlyArray<unknown>,
200 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
201 ) {
202 return transformRows
203 ? Effect.map(this.run(sql, params), transformRows)
204 : this.run(sql, params)
205 }
206 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
207 return this.runWithClient<Pg.Result>((client, resume) => {
208 client.query(sql, params as any, (err, result) => {

Callers 15

executeUnpreparedMethod · 0.95
Sqlite.test.tsFile · 0.45
executeCommitFunction · 0.45
executeUnpreparedFunction · 0.45
orderedFunction · 0.45
groupedFunction · 0.45
findByIdFunction · 0.45
void_Function · 0.45
withoutTransformMethod · 0.45
commitMethod · 0.45
streamRequestFunction · 0.45
makeFunction · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected