diff options
author | stephan <stephan@noemail.net> | 2025-06-19 10:25:50 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-06-19 10:25:50 +0000 |
commit | 64159096b8eed8116d3ba44828723fcab108da28 (patch) | |
tree | 1906f32e468ab88c0ffdd90c81944afc9bce1c52 /ext/wasm/api/sqlite3-api-glue.c-pp.js | |
parent | ab9c91ae82d2e4f062dde175727bfd3e23a5e99c (diff) | |
parent | 2be0a700ff57a9693ce85d60b30960d09dfbd96d (diff) | |
download | sqlite-64159096b8eed8116d3ba44828723fcab108da28.tar.gz sqlite-64159096b8eed8116d3ba44828723fcab108da28.zip |
Expose the column metadata APIs to WASM (which does not require a non-default sqlite3.c build, contrary to my prior mistaken claims). This adds only 424 bytes to sqlite3.wasm and 660 bytes to sqlite3.js.
FossilOrigin-Name: 3cf983816ccd167d93cb39c7a16b6db4b4f7ef2a64f4181d3bc4530cd0bd3b67
Diffstat (limited to 'ext/wasm/api/sqlite3-api-glue.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-glue.c-pp.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-glue.c-pp.js b/ext/wasm/api/sqlite3-api-glue.c-pp.js index a38b9cb5e..553911018 100644 --- a/ext/wasm/api/sqlite3-api-glue.c-pp.js +++ b/ext/wasm/api/sqlite3-api-glue.c-pp.js @@ -368,6 +368,14 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ ); }/* sqlite3_set_authorizer() */ + if( !!wasm.exports.sqlite3_column_origin_name ){ + wasm.bindingSignatures.push( + ["sqlite3_column_database_name","string", "sqlite3_stmt*", "int"], + ["sqlite3_column_origin_name","string", "sqlite3_stmt*", "int"], + ["sqlite3_column_table_name","string", "sqlite3_stmt*", "int"] + ); + } + if(false && wasm.compileOptionUsed('SQLITE_ENABLE_NORMALIZE')){ /* ^^^ "the problem" is that this is an optional feature and the build-time function-export list does not currently take |