MCPcopy Create free account
hub / github.com/effect-app/libs / runStatement

Function runStatement

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

Source from the content-addressed store, hash-verified

206 }
207 }
208
209 const runStatement = (
210 sql: string,
211 params: ReadonlyArray<unknown> = []
212 ): Effect.Effect<ReadonlyArray<any>, SqlError, never> =>
213 Effect.try({
214 try: () => Array.from(runIterator(sql, params)),
215 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") })
216 })
217
218 const runValues = (

Callers 3

executeFunction · 0.70
executeRawFunction · 0.70
executeUnpreparedFunction · 0.70

Calls 2

runIteratorFunction · 0.85
classifyErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…