Update better-sqlite3

This commit is contained in:
Fedor Indutny 2022-04-07 15:49:23 -07:00 committed by GitHub
parent b96b02593b
commit a15d84aade
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 48 deletions

View file

@ -315,7 +315,6 @@ const dataInterface: ServerInterface = {
// Server-only
getCorruptionLog,
initialize,
initializeRenderer,
@ -468,19 +467,6 @@ let globalInstanceRenderer: Database | undefined;
let databaseFilePath: string | undefined;
let indexedDBPath: string | undefined;
let corruptionLog = new Array<string>();
SQL.setCorruptionLogger(line => {
logger.error(`SQL corruption: ${line}`);
corruptionLog.push(line);
});
function getCorruptionLog(): string {
const result = corruptionLog.join('\n');
corruptionLog = [];
return result;
}
async function initialize({
configDir,
key,