1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

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
This commit is contained in:
stephan
2023-08-11 14:31:20 +00:00
parent 59d01de837
commit 7e13152952
5 changed files with 28 additions and 12 deletions

View File

@ -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