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

Method execute

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

129 }
130
131 execute(
132 sql: string,
133 params: ReadonlyArray<unknown>,
134 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
135 ) {
136 return transformRows
137 ? Effect.map(this.run(sql, params), transformRows)
138 : this.run(sql, params)
139 }
140 executeRaw(sql: string, params: ReadonlyArray<unknown>) {
141 return this.runRaw(sql, params)
142 }

Callers 1

executeUnpreparedFunction · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected