(method: string, sql: string, params: ReadonlyArray<unknown>)
| 276 | } |
| 277 | |
| 278 | private run(method: string, sql: string, params: ReadonlyArray<unknown>) { |
| 279 | return Effect.map( |
| 280 | Effect.tryPromise({ |
| 281 | try: () => this.pglite.query<any>(sql, params as Array<any>), |
| 282 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to execute statement", method) }) |
| 283 | }), |
| 284 | (result) => result.rows |
| 285 | ) |
| 286 | } |
| 287 | execute( |
| 288 | sql: string, |
| 289 | params: ReadonlyArray<unknown>, |
no test coverage detected