Specification
Our C++ code can throw an exception with the code indicating CORRUPTION. This means the user needs to attempt to repair the database before they try to open it. This is because dbOpen itself can fail.
We need to catch this and attempt the repairDb native function. However we need to come up with tests for this, what is an example of a broken database? Maybe mess with the files in it.
Additional context
Tasks
- ...
- ...
- ...