(
sql: string,
params: ReadonlyArray<unknown> = []
)
| 204 | } |
| 205 | |
| 206 | run( |
| 207 | sql: string, |
| 208 | params: ReadonlyArray<unknown> = [] |
| 209 | ) { |
| 210 | return Effect.map( |
| 211 | Effect.tryPromise({ |
| 212 | try: () => this.sdk.execute({ sql, args: params as Array<any> }), |
| 213 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", "execute") }) |
| 214 | }), |
| 215 | (results) => results.rows |
| 216 | ) |
| 217 | } |
| 218 | |
| 219 | runRaw( |
| 220 | sql: string, |
no test coverage detected