diff options
author | stephan <stephan@noemail.net> | 2024-07-13 13:22:32 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-07-13 13:22:32 +0000 |
commit | 0b9efaffd7eaf7881196b9d443670809f949be60 (patch) | |
tree | dc5e7abf3ea7ce08e66435b4a14a6e551acc3ac2 /ext/wasm/api/sqlite3-api-oo1.c-pp.js | |
parent | 6f9b37b35bf31ee3bc9158c9309cf205efab8d90 (diff) | |
download | sqlite-0b9efaffd7eaf7881196b9d443670809f949be60.tar.gz sqlite-0b9efaffd7eaf7881196b9d443670809f949be60.zip |
Add missing sqlite3_bind_parameter_name() binding to JS.
FossilOrigin-Name: 6dcfcc7e1c0772b11aec750bb75899a5c8e452735ecf5028c001fbaa7aa6fda0
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.c-pp.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/wasm/api/sqlite3-api-oo1.c-pp.js b/ext/wasm/api/sqlite3-api-oo1.c-pp.js index e557cbd57..0b9bbbbca 100644 --- a/ext/wasm/api/sqlite3-api-oo1.c-pp.js +++ b/ext/wasm/api/sqlite3-api-oo1.c-pp.js @@ -2030,6 +2030,19 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ return (affirmStmtOpen(this).parameterCount ? capi.sqlite3_bind_parameter_index(this.pointer, name) : undefined); + }, + /** + If this statement has named bindable parameters and the given + index refers to one, its name is returned, else null is + returned. If this statement has no bound parameters, undefined + is returned. + + Added in 3.47. + */ + getParamName: function(ndx){ + return (affirmStmtOpen(this).parameterCount + ? capi.sqlite3_bind_parameter_name(this.pointer, ndx) + : undefined); } }/*Stmt.prototype*/; |