(
sql: string,
params: ReadonlyArray<unknown> = []
)
| 241 | } |
| 242 | |
| 243 | const runStatement = ( |
| 244 | sql: string, |
| 245 | params: ReadonlyArray<unknown> = [] |
| 246 | ): Effect.Effect<ReadonlyArray<any>, SqlError, never> => |
| 247 | Effect.try({ |
| 248 | try: () => Array.from(runIterator(sql, params)), |
| 249 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") }) |
| 250 | }) |
| 251 | |
| 252 | const runValues = ( |
| 253 | sql: string, |
no test coverage detected