Run integrity checks on database corruption
This commit is contained in:
parent
064659657f
commit
f5c18cfb51
5 changed files with 76 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue