Use FTS5 optimizer in production

This commit is contained in:
Fedor Indutny
2023-10-11 01:55:32 +02:00
committed by GitHub
parent f5c18cfb51
commit e124730cb0
12 changed files with 200 additions and 42 deletions

View File

@@ -15,6 +15,7 @@ import type DB from './Server';
const MIN_TRACE_DURATION = 40;
export type InitializeOptions = Readonly<{
appVersion: string;
configDir: string;
key: string;
logger: LoggerType;
@@ -127,6 +128,7 @@ export class MainSQL {
}
public async initialize({
appVersion,
configDir,
key,
logger,
@@ -141,7 +143,7 @@ export class MainSQL {
this.onReady = this.send({
type: 'init',
options: { configDir, key },
options: { appVersion, configDir, key },
});
await this.onReady;