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

Method run

packages/sql/libsql/src/LibsqlClient.ts:218–229  ·  view source on GitHub ↗
(
        sql: string,
        params: ReadonlyArray<unknown> = []
      )

Source from the content-addressed store, hash-verified

216 }
217
218 run(
219 sql: string,
220 params: ReadonlyArray<unknown> = []
221 ) {
222 return Effect.map(
223 Effect.tryPromise({
224 try: () => this.sdk.execute({ sql, args: params as Array<any> }),
225 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") })
226 }),
227 (results) => results.rows
228 )
229 }
230
231 runRaw(
232 sql: string,

Callers 2

executeMethod · 0.95
executeValuesMethod · 0.95

Calls 3

classifyErrorFunction · 0.70
mapMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected