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

Method execute

packages/sql/pglite/src/PgliteClient.ts:309–317  ·  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

307 )
308 }
309 execute(
310 sql: string,
311 params: ReadonlyArray<unknown>,
312 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
313 ) {
314 return transformRows
315 ? Effect.map(this.run("execute", sql, params), transformRows)
316 : this.run("execute", sql, params)
317 }
318 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
319 return Effect.tryPromise({
320 try: () => this.pglite.query<any>(sql, params as Array<any>),

Callers

nothing calls this directly

Calls 2

runMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected