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

Function runStatement

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

Source from the content-addressed store, hash-verified

100 }
101
102 const runStatement = (
103 sql: string,
104 params: ReadonlyArray<unknown> = []
105 ): Effect.Effect<ReadonlyArray<any>, SqlError, never> =>
106 Effect.try({
107 try: () => Array.from(runIterator(sql, params)),
108 catch: (cause) => new SqlError({ cause, message: `Failed to execute statement` })
109 })
110
111 const runValues = (
112 sql: string,

Callers 3

executeFunction · 0.70
executeRawFunction · 0.70
executeUnpreparedFunction · 0.70

Calls 1

runIteratorFunction · 0.85

Tested by

no test coverage detected