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

Method execute

packages/sql/libsql/src/LibsqlClient.ts:229–237  ·  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

227 }
228
229 execute(
230 sql: string,
231 params: ReadonlyArray<unknown>,
232 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
233 ) {
234 return transformRows
235 ? Effect.map(this.run(sql, params), transformRows)
236 : this.run(sql, params)
237 }
238 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
239 return this.runRaw(sql, params)
240 }

Callers 3

executeUnpreparedMethod · 0.95
runMethod · 0.45
runRawMethod · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected