Using the latest https://github.com/vlcn-io/live-examples as my playground, I added
console.log(await db.execO("PRAGMA journal_mode=memory;"));
which correctly yields [ { "journal_mode": "memory" } ]
However,
console.log(await db.execO("PRAGMA journal_mode=WAL;"));
yields [ { "journal_mode": "delete" } ]
Notably, PRAGMA journal_mode=WAL; works on https://rhashimoto.github.io/wa-sqlite/demo/
If it matters, I'm just trying WAL mode because it apparently may improve perf.