Better reporting for DB corruption errors

This commit is contained in:
Fedor Indutny 2021-10-21 13:13:33 -07:00 committed by GitHub
parent 092c2fd0d7
commit 1b1ed2cd05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 43 additions and 5 deletions

View file

@ -0,0 +1,12 @@
diff --git a/node_modules/@types/better-sqlite3/index.d.ts b/node_modules/@types/better-sqlite3/index.d.ts
index d6e4309..5948fd0 100755
--- a/node_modules/@types/better-sqlite3/index.d.ts
+++ b/node_modules/@types/better-sqlite3/index.d.ts
@@ -84,6 +84,7 @@ declare namespace BetterSqlite3 {
prototype: Database;
SqliteError: typeof SqliteError;
+ setCorruptionLogger(fn: (message: string) => void): void;
}
}