execs must be awaited
This commit is contained in:
parent
8b57d298dd
commit
a312b6debe
4 changed files with 5 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ export class AutocompleteLruCache {
|
|||
driver: sqlite3.Database,
|
||||
});
|
||||
|
||||
db.exec("PRAGMA busy_timeout = 3000;");
|
||||
await db.exec("PRAGMA busy_timeout = 3000;");
|
||||
|
||||
await db.run(`
|
||||
CREATE TABLE IF NOT EXISTS cache (
|
||||
|
|
|
|||
|
|
@ -475,7 +475,7 @@ export default class DocsService {
|
|||
driver: sqlite3.Database,
|
||||
});
|
||||
|
||||
db.exec("PRAGMA busy_timeout = 3000;");
|
||||
await db.exec("PRAGMA busy_timeout = 3000;");
|
||||
|
||||
await runSqliteMigrations(db);
|
||||
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ export class SqliteDb {
|
|||
driver: sqlite3.Database,
|
||||
});
|
||||
|
||||
SqliteDb.db.exec("PRAGMA busy_timeout = 3000;");
|
||||
await SqliteDb.db.exec("PRAGMA busy_timeout = 3000;");
|
||||
|
||||
await SqliteDb.createTables(SqliteDb.db);
|
||||
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ export class DevDataSqliteDb {
|
|||
driver: sqlite3.Database,
|
||||
});
|
||||
|
||||
DevDataSqliteDb.db.exec("PRAGMA busy_timeout = 3000;");
|
||||
|
||||
await DevDataSqliteDb.db.exec("PRAGMA busy_timeout = 3000;");
|
||||
|
||||
await DevDataSqliteDb.createTables(DevDataSqliteDb.db!);
|
||||
|
||||
return DevDataSqliteDb.db;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue