Automatically recover when the sqlite3 database is malformed or corrupted (#37949)

* Validate sqlite database on startup and move away if corruption is detected.

* do not switch context in test -- its all sync
This commit is contained in:
J. Nick Koston
2020-07-17 19:07:37 -10:00
committed by GitHub
parent 910b6c9c2c
commit 1acdb28cdd
4 changed files with 96 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
"""Recorder constants."""
DATA_INSTANCE = "recorder_instance"
SQLITE_URL_PREFIX = "sqlite://"