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

Method execute

packages/sql/mysql2/src/MysqlClient.ts:270–278  ·  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

268 }
269
270 execute(
271 sql: string,
272 params: ReadonlyArray<unknown>,
273 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
274 ) {
275 return transformRows
276 ? Effect.map(this.run(sql, params), transformRows)
277 : this.run(sql, params)
278 }
279 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
280 return this.runRaw(sql, params)
281 }

Callers 1

executeUnpreparedFunction · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.45

Tested by

no test coverage detected