aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-opfs.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/api/sqlite3-api-opfs.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/api/sqlite3-api-opfs.js')
-rw-r--r--ext/wasm/api/sqlite3-api-opfs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-opfs.js b/ext/wasm/api/sqlite3-api-opfs.js
index deb4c923a..53f68a1d5 100644
--- a/ext/wasm/api/sqlite3-api-opfs.js
+++ b/ext/wasm/api/sqlite3-api-opfs.js
@@ -348,6 +348,7 @@ const installOpfsVfs = function callee(options){
'SQLITE_NOTFOUND',
'SQLITE_OPEN_CREATE',
'SQLITE_OPEN_DELETEONCLOSE',
+ 'SQLITE_OPEN_MAIN_DB',
'SQLITE_OPEN_READONLY'
].forEach((k)=>{
if(undefined === (state.sq3Codes[k] = capi[k])){