(sql: string)
| 167 | Math.max(0, Math.round(Duration.toMillis(options.busyTimeout ?? Duration.seconds(5)))) |
| 168 | ) |
| 169 | const exec = (sql: string) => |
| 170 | Effect.try({ |
| 171 | try: () => db.run(sql), |
| 172 | catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to configure database", "connect") }) |
| 173 | }) |
| 174 | yield* exec(`PRAGMA busy_timeout = ${busyTimeout};`) |
| 175 | |
| 176 | if (options.disableWAL !== true && !readonly) { |
no test coverage detected