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

Method executeUnprepared

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

144 return this.run(sql, params, true)
145 }
146 executeUnprepared(
147 sql: string,
148 params: ReadonlyArray<unknown>,
149 transformRows: (<A extends object>(row: ReadonlyArray<A>) => ReadonlyArray<A>) | undefined
150 ) {
151 return transformRows
152 ? Effect.map(this.run(sql, params, false, "query"), transformRows)
153 : this.run(sql, params, false, "query")
154 }
155 executeStream(
156 sql: string,
157 params: ReadonlyArray<unknown>,

Callers 1

makeFunction · 0.45

Calls 2

runMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected