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