Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import: Check DB integrity #4

Open
Lavode opened this issue Mar 30, 2018 · 0 comments
Open

Import: Check DB integrity #4

Lavode opened this issue Mar 30, 2018 · 0 comments

Comments

@Lavode
Copy link
Contributor

Lavode commented Mar 30, 2018

If the DB file was copied while a transaction was ongoing, the resulting file will likely be corrupt.

To prevent wasting time trying to import such a corrupted file, it might make sense to check the DB's integrity using sqlite's built-in tools, before attempting the import.

Integrity can be checked by executing PRAGMA integrity_check. If the result is a single ok all is good, otherwise there's issues with the DB file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant