(path)
| 285 | }) |
| 286 | }, |
| 287 | loadExtension(path) { |
| 288 | return Effect.acquireUseRelease( |
| 289 | Effect.sync(() => db.enableLoadExtension(true)), |
| 290 | () => |
| 291 | Effect.try({ |
| 292 | try: () => db.loadExtension(path), |
| 293 | catch: (cause) => |
| 294 | new SqlError({ reason: classifyError(cause, "Failed to load extension", "loadExtension") }) |
| 295 | }), |
| 296 | () => Effect.sync(() => db.enableLoadExtension(false)) |
| 297 | ) |
| 298 | } |
| 299 | }) |
| 300 | }) |
| 301 |
nothing calls this directly
no test coverage detected