aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/tests/opfs/concurrency/worker.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-11-23 16:39:07 +0000
committerstephan <stephan@noemail.net>2022-11-23 16:39:07 +0000
commitad1285c5c0be7eb92cc44a3357be71507c3c07f2 (patch)
tree7845fbabe121ea9679c5625de7958fe4f6bff342 /ext/wasm/tests/opfs/concurrency/worker.js
parentc32e16643d8c364db7dcddafa83037c977ab797e (diff)
downloadsqlite-ad1285c5c0be7eb92cc44a3357be71507c3c07f2.tar.gz
sqlite-ad1285c5c0be7eb92cc44a3357be71507c3c07f2.zip
Initial infrastructure for adding a mode to the OPFS VFS which causes implicit locks to be released ASAP, which increases concurrency at the cost of performance.
FossilOrigin-Name: c5b7a9715a13b696ab3ee965aa0a310f59b65f07cecd72faa2e3504bfd8eb632
Diffstat (limited to 'ext/wasm/tests/opfs/concurrency/worker.js')
-rw-r--r--ext/wasm/tests/opfs/concurrency/worker.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/wasm/tests/opfs/concurrency/worker.js b/ext/wasm/tests/opfs/concurrency/worker.js
index 19b0a068e..9b4898f4c 100644
--- a/ext/wasm/tests/opfs/concurrency/worker.js
+++ b/ext/wasm/tests/opfs/concurrency/worker.js
@@ -43,7 +43,11 @@ self.sqlite3InitModule().then(async function(sqlite3){
}
};
const run = async function(){
- db = new sqlite3.opfs.OpfsDb(dbName,'c');
+ db = new sqlite3.oo1.DB({
+ filename: 'file:'+dbName,
+ flags: 'c',
+ vfs: 'opfs'
+ });
sqlite3.capi.sqlite3_busy_timeout(db.pointer, 5000);
db.transaction((db)=>{
db.exec([