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

Method execute

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

239 }
240
241 execute(
242 sql: string,
243 params: ReadonlyArray<unknown>,
244 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
245 ) {
246 return transformRows
247 ? Effect.map(this.run(sql, params), transformRows)
248 : this.run(sql, params)
249 }
250 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
251 return this.runRaw(sql, params)
252 }

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