(
sql: string,
params: ReadonlyArray<unknown> = []
)
| 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, |
no test coverage detected