1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Move a block of JS code which was inadvertently (and harmlessly) moved in the previous checkin. Clarify the semantics of an internal-use-only API. Add another WAL-related JS test.

FossilOrigin-Name: 6cd9f55a975b5237efee8776efce7e7836b41905ca750f82be3b90aa04c1dff2
This commit is contained in:
stephan
2024-07-22 21:21:25 +00:00
parent 71e2bdb2b4
commit faf10c521f
4 changed files with 26 additions and 21 deletions

View File

@ -3151,7 +3151,11 @@ globalThis.sqlite3InitModule = sqlite3InitModule;
.assert( dbytes.byteLength == nWrote );
let db2 = new u1.OpfsSAHPoolDb(dbName2);
T.assert(db2 instanceof sqlite3.oo1.DB)
//.assert('wal' == db2.selectValue("pragma journal_mode=WAL"))
.assert('wal' !== db2.selectValue("pragma journal_mode")
/* importDb() unsets the WAL-mode header for
historical reasons. Because clients must
explicitly enable pragma locking_mode=exclusive
before using WAL, that behavior is retained. */)
.assert(3 === db2.selectValue('select count(*) from t'));
db2.close();
T.assert(true === u1.unlink(dbName2))