(sql: string)
| 199 | } |
| 200 | |
| 201 | const prepare = (sql: string) => |
| 202 | Effect.try({ |
| 203 | try: () => db.prepare(sql), |
| 204 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to prepare statement", "prepare") }) |
| 205 | }) |
| 206 | |
| 207 | const prepareCacheTTL = options.prepareCacheTTL ?? Duration.minutes(10) |
| 208 | const prepareCache = yield* Cache.makeWith(prepare, { |
no test coverage detected