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

Method execute

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

176 }
177
178 execute(
179 sql: string,
180 params: ReadonlyArray<unknown>,
181 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
182 ) {
183 return transformRows
184 ? Effect.map(this.run(sql, params), transformRows)
185 : this.run(sql, params)
186 }
187 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
188 return this.runRaw(sql, params)
189 }

Callers 4

executeUnpreparedMethod · 0.95
Resolver.test.tsFile · 0.45
runMethod · 0.45
runRawMethod · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected