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

Method execute

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

285 )
286 }
287 execute(
288 sql: string,
289 params: ReadonlyArray<unknown>,
290 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
291 ) {
292 return transformRows
293 ? Effect.map(this.run("execute", sql, params), transformRows)
294 : this.run("execute", sql, params)
295 }
296 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
297 return Effect.tryPromise({
298 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