(sql: string, params: ReadonlyArray<unknown>)
| 204 | : this.run(sql, params) |
| 205 | } |
| 206 | executeRaw(sql: string, params: ReadonlyArray<unknown>) { |
| 207 | return this.runWithClient<Pg.Result>((client, resume) => { |
| 208 | client.query(sql, params as any, (err, result) => { |
| 209 | if (err) { |
| 210 | resume(Effect.fail(new SqlError({ cause: err, message: "Failed to execute statement" }))) |
| 211 | } else { |
| 212 | resume(Effect.succeed(result)) |
| 213 | } |
| 214 | }) |
| 215 | }) |
| 216 | } |
| 217 | executeWithoutTransform(sql: string, params: ReadonlyArray<unknown>) { |
| 218 | return this.run(sql, params) |
| 219 | } |
no test coverage detected