[core] Use sqlite3 instead of better-sqlite3

better-sqlite3 can freeze the whole system
This commit is contained in:
devlikepro committed 2025-07-27 17:39:16 +07:00
1 parent 5f6d1412cf
commit 9ba7e19da3
2 files changed
+2 -2

No files matched your search

@@ -22,7 +22,7 @@ export class Sqlite3Storage extends INowebStorage {
constructor(filePath: string) {
super();
this.knex = Knex({
client: 'better-sqlite3',
client: 'sqlite3',
connection: { filename: filePath },
useNullAsDefault: true,
});
+1 -1
View File
@@ -68,7 +68,7 @@ export class LocalStoreCore extends LocalStore {
const engineDir = this.getEngineDirectory();
const database = path.join(engineDir, 'waha.sqlite3');
return Knex({
client: 'better-sqlite3',
client: 'sqlite3',
connection: { filename: database },
useNullAsDefault: true,
});