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