From 55a4bea72a63412f9cecb78b208794d00e9e8a83 Mon Sep 17 00:00:00 2001 From: stephan Date: Sat, 13 Jul 2024 14:07:47 +0000 Subject: Add JS bindings for sqlite3_stmt_busy() and sqlite3_stmt_explain(). FossilOrigin-Name: b772edfb44143107d4993bde600d0f4c45184f29a4deee403105c64748c36523 --- ext/wasm/api/sqlite3-api-oo1.c-pp.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'ext/wasm/api/sqlite3-api-oo1.c-pp.js') 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*/; -- cgit v1.2.3