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

Method run

packages/sql/mysql2/src/MysqlClient.ts:259–268  ·  view source on GitHub ↗
(
        sql: string,
        values?: ReadonlyArray<any>,
        rowsAsArray = false,
        method: "execute" | "query" = defaultMethod
      )

Source from the content-addressed store, hash-verified

257 }
258
259 private run(
260 sql: string,
261 values?: ReadonlyArray<any>,
262 rowsAsArray = false,
263 method: "execute" | "query" = defaultMethod
264 ) {
265 return this.runRaw(sql, values, rowsAsArray, method).pipe(
266 Effect.map((results) => Array.isArray(results) ? results : [])
267 )
268 }
269
270 execute(
271 sql: string,

Callers 4

executeMethod · 0.95
executeValuesMethod · 0.95
executeUnpreparedMethod · 0.95

Calls 3

runRawMethod · 0.95
pipeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected