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