MCPcopy Index your code
hub / github.com/Effect-TS/effect / runStatement

Function runStatement

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

Source from the content-addressed store, hash-verified

94 }
95
96 const runStatement = (
97 sql: string,
98 params: ReadonlyArray<unknown> = []
99 ): Effect.Effect<ReadonlyArray<any>, SqlError, never> =>
100 Effect.try({
101 try: () => Array.from(runIterator(sql, params)),
102 catch: (cause) => new SqlError({ cause, message: `Failed to execute statement` })
103 })
104
105 const runValues = (
106 sql: string,

Callers 3

executeFunction · 0.70
executeRawFunction · 0.70
executeUnpreparedFunction · 0.70

Calls 1

runIteratorFunction · 0.85

Tested by

no test coverage detected