(
statement: StatementSync,
params: ReadonlyArray<unknown>
)
| 231 | }) |
| 232 | |
| 233 | const runStatementValues = ( |
| 234 | statement: StatementSync, |
| 235 | params: ReadonlyArray<unknown> |
| 236 | ) => |
| 237 | Effect.withFiber<ReadonlyArray<ReadonlyArray<unknown>>, SqlError>((fiber) => { |
| 238 | const useSafeIntegers = Context.get(fiber.context, Client.SafeIntegers) |
| 239 | return Effect.try({ |
| 240 | try: () => { |
| 241 | statement.setReadBigInts(useSafeIntegers) |
| 242 | return statement.all(...(params as Array<any>)) as unknown as ReadonlyArray<ReadonlyArray<unknown>> |
| 243 | }, |
| 244 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") }) |
| 245 | }) |
| 246 | }) |
| 247 | |
| 248 | const runStatementValuesUnprepared = ( |
| 249 | statement: StatementSync, |
no test coverage detected