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

Function runStatement

packages/sql/sqlite-do/src/SqliteClient.ts:243–250  ·  view source on GitHub ↗
(
        sql: string,
        params: ReadonlyArray<unknown> = []
      )

Source from the content-addressed store, hash-verified

241 }
242
243 const runStatement = (
244 sql: string,
245 params: ReadonlyArray<unknown> = []
246 ): Effect.Effect<ReadonlyArray<any>, SqlError, never> =>
247 Effect.try({
248 try: () => Array.from(runIterator(sql, params)),
249 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") })
250 })
251
252 const runValues = (
253 sql: string,

Callers 3

executeFunction · 0.70
executeRawFunction · 0.70
executeUnpreparedFunction · 0.70

Calls 3

runIteratorFunction · 0.85
fromMethod · 0.80
classifyErrorFunction · 0.70

Tested by

no test coverage detected