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

Method run

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

Source from the content-addressed store, hash-verified

118 }
119
120 private run(
121 sql: string,
122 values?: ReadonlyArray<any>,
123 rowsAsArray = false,
124 method: "execute" | "query" = "execute"
125 ) {
126 return this.runRaw(sql, values, rowsAsArray, method).pipe(
127 Effect.map((results) => Array.isArray(results) ? results : [])
128 )
129 }
130
131 execute(
132 sql: string,

Callers 3

executeMethod · 0.95
executeValuesMethod · 0.95
executeUnpreparedMethod · 0.95

Calls 3

runRawMethod · 0.95
pipeMethod · 0.65
mapMethod · 0.65

Tested by

no test coverage detected