(
sql: string,
params: ReadonlyArray<unknown> = []
)
| 166 | } |
| 167 | |
| 168 | runRaw( |
| 169 | sql: string, |
| 170 | params: ReadonlyArray<unknown> = [] |
| 171 | ) { |
| 172 | return Effect.tryPromise({ |
| 173 | try: () => this.sdk.execute({ sql, args: params as Array<any> }), |
| 174 | catch: (cause) => new SqlError({ cause, message: "Failed to execute statement" }) |
| 175 | }) |
| 176 | } |
| 177 | |
| 178 | execute( |
| 179 | sql: string, |