use better-sqlite3

This commit is contained in:
zadam
2020-06-17 23:03:46 +02:00
parent 5f2361ebd5
commit f745e21e0d
7 changed files with 210 additions and 55 deletions

View File

@@ -24,8 +24,6 @@ app.on('window-all-closed', () => {
app.on('ready', async () => {
app.setAppUserModelId('com.github.zadam.trilium');
await sqlInit.dbConnection;
// if db is not initialized -> setup process
// if db is initialized, then we need to wait until the migration process is finished
if (await sqlInit.isDbInitialized()) {