aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/sqlite3-vtab-helper.c-pp.js
diff options
context:
space:
mode:
authordrh <>2024-07-31 23:46:10 +0000
committerdrh <>2024-07-31 23:46:10 +0000
commita3ee3860a2bef9f44561093b5e39d9160840671b (patch)
treefab970cd979cde29df6ca4ddc1856fd2d6af870d /ext/wasm/api/sqlite3-vtab-helper.c-pp.js
parentc96e47c80e67d3a21c591ccb3432f3c18153f8aa (diff)
parenta1291e79d3d0c8b6aa40b455151b988a92879e17 (diff)
downloadsqlite-a3ee3860a2bef9f44561093b5e39d9160840671b.tar.gz
sqlite-a3ee3860a2bef9f44561093b5e39d9160840671b.zip
Merge all the latest trunk enhancements into the exists-to-join branch.
FossilOrigin-Name: 9084a4c8726a2c7ba1c381886e29c7b86121d531282be0d63d5988d84f6f448d
Diffstat (limited to 'ext/wasm/api/sqlite3-vtab-helper.c-pp.js')
-rw-r--r--ext/wasm/api/sqlite3-vtab-helper.c-pp.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-vtab-helper.c-pp.js b/ext/wasm/api/sqlite3-vtab-helper.c-pp.js
index 7359ea39a..d78fbdbf3 100644
--- a/ext/wasm/api/sqlite3-vtab-helper.c-pp.js
+++ b/ext/wasm/api/sqlite3-vtab-helper.c-pp.js
@@ -11,10 +11,14 @@
/**
This file installs sqlite3.vtab, a namespace of helpers for use in
- the creation of JavaScript implementations virtual tables.
+ the creation of JavaScript implementations virtual tables. If built
+ without virtual table support then this function does nothing.
*/
'use strict';
globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
+ if( !sqlite3.wasm.exports.sqlite3_declare_vtab ){
+ return;
+ }
const wasm = sqlite3.wasm, capi = sqlite3.capi, toss = sqlite3.util.toss3;
const vtab = Object.create(null);
sqlite3.vtab = vtab;