ework-daemon 0.4.9 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/db.ts +1 -0
package/package.json
CHANGED
package/src/db.ts
CHANGED
|
@@ -96,6 +96,7 @@ class SqliteDriver implements AsyncDatabase {
|
|
|
96
96
|
const db = new Database(DB_PATH, { create: true, readwrite: true });
|
|
97
97
|
db.exec("PRAGMA journal_mode = WAL");
|
|
98
98
|
db.exec("PRAGMA foreign_keys = ON");
|
|
99
|
+
db.exec("PRAGMA busy_timeout = 5000");
|
|
99
100
|
const schemaSql = applyPrefix(readFileSync(join(import.meta.dir, "schema-sqlite.sql"), "utf8"));
|
|
100
101
|
db.exec(schemaSql);
|
|
101
102
|
return new SqliteDriver(db);
|