Run integrity checks on database corruption

This commit is contained in:
Fedor Indutny 2023-10-11 01:19:11 +02:00 committed by GitHub
parent 064659657f
commit f5c18cfb51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 76 additions and 14 deletions

View file

@ -2,9 +2,9 @@
// SPDX-License-Identifier: AGPL-3.0-only
export enum SqliteErrorKind {
Corrupted,
Readonly,
Unknown,
Corrupted = 'Corrupted',
Readonly = 'Readonly',
Unknown = 'Unknown',
}
export function parseSqliteError(error?: Error): SqliteErrorKind {