(
sql: string,
params: ReadonlyArray<unknown> = []
)
| 216 | } |
| 217 | |
| 218 | run( |
| 219 | sql: string, |
| 220 | params: ReadonlyArray<unknown> = [] |
| 221 | ) { |
| 222 | return Effect.map( |
| 223 | Effect.tryPromise({ |
| 224 | try: () => this.sdk.execute({ sql, args: params as Array<any> }), |
| 225 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") }) |
| 226 | }), |
| 227 | (results) => results.rows |
| 228 | ) |
| 229 | } |
| 230 | |
| 231 | runRaw( |
| 232 | sql: string, |
no test coverage detected