Skip to content

Catch CORRUPTION error code and attempt automatic repair and reopen, or at least provide users the ability to directly repair #35

Description

@CMCDragonkai

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

  1. ...
  2. ...
  3. ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions