aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-opfs.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-11-29 02:23:12 +0000
committerstephan <stephan@noemail.net>2022-11-29 02:23:12 +0000
commite6b0154138801768597d572c298af899ffebddeb (patch)
tree4aceb0ea578f2e7224167e7d35269c72be9ce936 /ext/wasm/api/sqlite3-api-opfs.js
parentd3fc2e63aa45f0a5a64baac15242aa369a74cfb3 (diff)
downloadsqlite-e6b0154138801768597d572c298af899ffebddeb.tar.gz
sqlite-e6b0154138801768597d572c298af899ffebddeb.zip
Add an explicit warning about the current API-instability of the sqlite3.opfs namespace, which may need to be eliminated based on re-thinking of how the OPFS sqlite3_vfs is registered. Comment changes only - no code.
FossilOrigin-Name: 0cb2fd14179397051a25d066256a553fc198656d5668c7010c016f2b8f495bf4
Diffstat (limited to 'ext/wasm/api/sqlite3-api-opfs.js')
-rw-r--r--ext/wasm/api/sqlite3-api-opfs.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/api/sqlite3-api-opfs.js b/ext/wasm/api/sqlite3-api-opfs.js
index 5537df89f..458448175 100644
--- a/ext/wasm/api/sqlite3-api-opfs.js
+++ b/ext/wasm/api/sqlite3-api-opfs.js
@@ -128,6 +128,10 @@ const installOpfsVfs = function callee(options){
/**
Generic utilities for working with OPFS. This will get filled out
by the Promise setup and, on success, installed as sqlite3.opfs.
+
+ ACHTUNG: do not rely on these APIs in client code. They are
+ experimental and subject to change or removal as the
+ OPFS-specific sqlite3_vfs evolves.
*/
const opfsUtil = Object.create(null);
/**
@@ -186,8 +190,7 @@ const installOpfsVfs = function callee(options){
const dVfs = pDVfs
? new sqlite3_vfs(pDVfs)
: null /* dVfs will be null when sqlite3 is built with
- SQLITE_OS_OTHER. Though we cannot currently handle
- that case, the hope is to eventually be able to. */;
+ SQLITE_OS_OTHER. */;
const opfsVfs = new sqlite3_vfs();
const opfsIoMethods = new sqlite3_io_methods();
opfsVfs.$iVersion = 2/*yes, two*/;