aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-api-prologue.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-08-11 14:31:20 +0000
committerstephan <stephan@noemail.net>2023-08-11 14:31:20 +0000
commit7e131529526d1f86689f1e9a3d07adac87bf21c3 (patch)
treed4d3cb0a7bca91e507c70ae71568f43b02b66a5c /ext/wasm/api/sqlite3-api-prologue.js
parent59d01de837f5c094d88a106690487a571887c9df (diff)
downloadsqlite-7e131529526d1f86689f1e9a3d07adac87bf21c3.tar.gz
sqlite-7e131529526d1f86689f1e9a3d07adac87bf21c3.zip
Deprecate sqlite3_js_vfs_create_file() because, it was discovered today, its out-of-scope use of the sqlite3_vfs, sqlite3_file, and sqlite3_io_methods APIs triggers unresolvable assertions in the core when built with SQLITE_DEBUG.
FossilOrigin-Name: f3647a3ac8eca8c821b0b1e403da7bfb0feabd0eb5ee83709cd4956dfc56a492
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r--ext/wasm/api/sqlite3-api-prologue.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js
index 3b29041c3..fe167f025 100644
--- a/ext/wasm/api/sqlite3-api-prologue.js
+++ b/ext/wasm/api/sqlite3-api-prologue.js
@@ -1357,6 +1357,12 @@ globalThis.sqlite3ApiBootstrap = function sqlite3ApiBootstrap(
};
/**
+ Achtung: this function does not work in debug builds of sqlite3
+ because its out-of-scope use of the sqlite3_vfs API triggers
+ unresolvable assertions in the core library. That was
+ unfortunately not discovered until 2023-08-11. Because of that,
+ this function is now deprecated and should be used in new code.
+
Creates a file using the storage appropriate for the given
sqlite3_vfs. The first argument may be a VFS name (JS string
only, NOT a WASM C-string), WASM-managed `sqlite3_vfs*`, or