diff options
author | stephan <stephan@noemail.net> | 2024-07-13 14:07:47 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-07-13 14:07:47 +0000 |
commit | 55a4bea72a63412f9cecb78b208794d00e9e8a83 (patch) | |
tree | 7f9acc4e3f25ac9ba14759a52e40c86b95dae235 /ext/wasm/api/sqlite3-api-oo1.c-pp.js | |
parent | 0b9efaffd7eaf7881196b9d443670809f949be60 (diff) | |
download | sqlite-55a4bea72a63412f9cecb78b208794d00e9e8a83.tar.gz sqlite-55a4bea72a63412f9cecb78b208794d00e9e8a83.zip |
Add JS bindings for sqlite3_stmt_busy() and sqlite3_stmt_explain().
FossilOrigin-Name: b772edfb44143107d4993bde600d0f4c45184f29a4deee403105c64748c36523
Diffstat (limited to 'ext/wasm/api/sqlite3-api-oo1.c-pp.js')
-rw-r--r-- | ext/wasm/api/sqlite3-api-oo1.c-pp.js | 20 |
1 files changed, 20 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 0b9bbbbca..c07ecfcc2 100644 --- a/ext/wasm/api/sqlite3-api-oo1.c-pp.js +++ b/ext/wasm/api/sqlite3-api-oo1.c-pp.js @@ -2043,6 +2043,26 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){ return (affirmStmtOpen(this).parameterCount ? capi.sqlite3_bind_parameter_name(this.pointer, ndx) : undefined); + }, + + /** + Behaves like sqlite3_stmt_busy() but throws if this statement + is closed and returns a value of type boolean instead of integer. + + Added in 3.47. + */ + isBusy: function(){ + return 0!==capi.sqlite3_stmt_busy(affirmStmtOpen(this)); + }, + + /** + Behaves like sqlite3_stmt_readonly() but throws if this statement + is closed and returns a value of type boolean instead of integer. + + Added in 3.47. + */ + isReadOnly: function(){ + return 0!==capi.sqlite3_stmt_readonly(affirmStmtOpen(this)); } }/*Stmt.prototype*/; |