Update better-sqlite3
This commit is contained in:
parent
b96b02593b
commit
a15d84aade
7 changed files with 13 additions and 48 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue