We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f38fe11 commit 0961a98Copy full SHA for 0961a98
fibjs/src/db/sql/SQLite.cpp
@@ -53,6 +53,8 @@ result_t SQLite::open(const char* file)
53
54
obj_ptr<NArray> retVal;
55
cc_execute("PRAGMA journal_mode=WAL;", retVal);
56
+ cc_execute("PRAGMA synchronous=normal;", retVal);
57
+ cc_execute("PRAGMA temp_store=memory;", retVal);
58
59
m_file = file;
60
test/db_test.js
@@ -1346,7 +1346,7 @@ describe("db", () => {
1346
var synchronous = conn.execute("PRAGMA synchronous;")[0].synchronous;
1347
conn.close();
1348
1349
- assert.equal(synchronous, 2);
+ assert.equal(synchronous, 1);
1350
});
1351
1352
it("check journal mode", () => {
0 commit comments