You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 becausedbOpen
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
The text was updated successfully, but these errors were encountered: