Enable WAL mode
So multiple reads can happen with a single write call. https://www.sqlite.org/wal.htmlpull/1/head
rodzic
6e556afede
commit
842f806449
2
stats.js
2
stats.js
|
@ -120,6 +120,8 @@ var main = function() {
|
|||
writeStats(containers);
|
||||
};
|
||||
|
||||
db.run("PRAGMA journal_mode=WAL");
|
||||
|
||||
db.run("CREATE TABLE IF NOT EXISTS containers ( " +
|
||||
"id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " +
|
||||
"name TEXT NOT NULL)");
|
||||
|
|
Ładowanie…
Reference in New Issue