From e7a240127c0e42ba9aba6d120859bf83c32891ce Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 17 Oct 2022 16:28:23 +0200 Subject: [PATCH] Disable FTS --- plugos/syscalls/fulltext.knex_sqlite.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/plugos/syscalls/fulltext.knex_sqlite.ts b/plugos/syscalls/fulltext.knex_sqlite.ts index f7b2ac9..b2e7f94 100644 --- a/plugos/syscalls/fulltext.knex_sqlite.ts +++ b/plugos/syscalls/fulltext.knex_sqlite.ts @@ -11,18 +11,18 @@ export function ensureFTSTable( db: SQLite, tableName: string, ) { - const stmt = db.prepare( - `SELECT name FROM sqlite_master WHERE type='table' AND name=?`, - ); - const result = stmt.all(tableName); - if (result.length === 0) { - asyncExecute( - db, - `CREATE VIRTUAL TABLE ${tableName} USING fts5(key, value);`, - ); + // const stmt = db.prepare( + // `SELECT name FROM sqlite_master WHERE type='table' AND name=?`, + // ); + // const result = stmt.all(tableName); + // if (result.length === 0) { + // asyncExecute( + // db, + // `CREATE VIRTUAL TABLE ${tableName} USING fts5(key, value);`, + // ); - console.log(`Created fts5 table ${tableName}`); - } + // console.log(`Created fts5 table ${tableName}`); + // } return Promise.resolve(); }