diff options
author | stephan <stephan@noemail.net> | 2022-09-28 18:10:50 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2022-09-28 18:10:50 +0000 |
commit | 4b884bb4c77cb4b1e5059395212160f4ee48cc53 (patch) | |
tree | 82de05edb422ecf129db61e6968649f26df95863 /ext/wasm/api/sqlite3-api-prologue.js | |
parent | cb22bd80d28750425101ad1f591aea045f762341 (diff) | |
download | sqlite-4b884bb4c77cb4b1e5059395212160f4ee48cc53.tar.gz sqlite-4b884bb4c77cb4b1e5059395212160f4ee48cc53.zip |
Wasm: expose sqlite3_exec() and use it to simplify the db-reset logic in batch-runner.js a bit.
FossilOrigin-Name: 2e2821f782511b9d2274a89a5a922582aba18c7e9dc7ce01080e713942a56d7d
Diffstat (limited to 'ext/wasm/api/sqlite3-api-prologue.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-prologue.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/wasm/api/sqlite3-api-prologue.js b/ext/wasm/api/sqlite3-api-prologue.js index efdcab7e4..e0379a646 100644 --- a/ext/wasm/api/sqlite3-api-prologue.js +++ b/ext/wasm/api/sqlite3-api-prologue.js @@ -611,9 +611,10 @@ self.sqlite3ApiBootstrap = function sqlite3ApiBootstrap( ["sqlite3_errmsg", "string", "sqlite3*"], ["sqlite3_error_offset", "int", "sqlite3*"], ["sqlite3_errstr", "string", "int"], - //["sqlite3_exec", "int", "sqlite3*", "string", "*", "*", "**"], - // ^^^ TODO: we need a wrapper to support passing a function pointer or a function - // for the callback. + ["sqlite3_exec", "int", "sqlite3*", "string", "*", "*", "**"], + // TODO?: ^^^ add a wrapper around sqlite3_exec() which accepts a + // JS callback function and handles the (un)installation of that + // function before/after the exec call. ["sqlite3_expanded_sql", "string", "sqlite3_stmt*"], ["sqlite3_extended_errcode", "int", "sqlite3*"], ["sqlite3_extended_result_codes", "int", "sqlite3*", "int"], |