@@ -3669,6 +3669,30 @@ export type CAPI = {
36693669 */
36703670 sqlite3_shutdown : ( ) => Sqlite3Result ;
36713671
3672+ /**
3673+ * The sqlite3_interrupt(D) interface will cause any pending database
3674+ * operation to abort and return at its earliest opportunity.
3675+ *
3676+ * C Signature:
3677+ *
3678+ * void sqlite3_interrupt(sqlite3*);
3679+ *
3680+ * See https://www.sqlite.org/c3ref/interrupt.html
3681+ */
3682+ sqlite3_interrupt : ( db : DbPtr ) => void ;
3683+
3684+ /**
3685+ * The sqlite3_is_interrupted(D) interface can be used to determine whether an
3686+ * interrupt is currently pending for database connection D.
3687+ *
3688+ * C Signature:
3689+ *
3690+ * int sqlite3_is_interrupted(sqlite3*);
3691+ *
3692+ * See https://www.sqlite.org/c3ref/interrupt.html
3693+ */
3694+ sqlite3_is_interrupted : ( db : DbPtr ) => number ;
3695+
36723696 /**
36733697 * Used to make global configuration changes to SQLite in order to tune SQLite
36743698 * to the specific needs of the application. The default configuration is
@@ -4417,6 +4441,19 @@ export type CAPI = {
44174441 */
44184442 sqlite3_stmt_readonly : ( stmt : StmtPtr ) => number ;
44194443
4444+ /**
4445+ * The sqlite3_stmt_busy(S) interface returns true (non-zero) if the prepared
4446+ * statement S has been stepped at least once but has not yet run to
4447+ * completion and/or has not been reset.
4448+ *
4449+ * C Signature:
4450+ *
4451+ * int sqlite3_stmt_busy(sqlite3_stmt*);
4452+ *
4453+ * See https://www.sqlite.org/c3ref/stmt_busy.html
4454+ */
4455+ sqlite3_stmt_busy : ( stmt : StmtPtr ) => number ;
4456+
44204457 /**
44214458 * Returns 1 if the prepared statement `stmt` is an `EXPLAIN` statement, or 2
44224459 * if the statement `stmt` is an `EXPLAIN QUERY PLAN`. Returns 0 if `stmt` is
@@ -4492,7 +4529,7 @@ export type CAPI = {
44924529 ) => Sqlite3Result ;
44934530
44944531 /**
4495- * Bind a 64 bit integer number to a parameter in a prepared statement.
4532+ * Bind a 64- bit integer number to a parameter in a prepared statement.
44964533 *
44974534 * C Signature:
44984535 *
@@ -4610,6 +4647,18 @@ export type CAPI = {
46104647 name : string | WasmPointer ,
46114648 ) => Sqlite3Result ;
46124649
4650+ /**
4651+ * The sqlite3_bind_parameter_name(P,N) interface returns the name of the N-th
4652+ * parameter in prepared statement P.
4653+ *
4654+ * C Signature:
4655+ *
4656+ * const char *sqlite3_bind_parameter_name(sqlite3_stmt*, int);
4657+ *
4658+ * See https://www.sqlite.org/c3ref/bind_parameter_name.html
4659+ */
4660+ sqlite3_bind_parameter_name : ( stmt : StmtPtr , N : number ) => string | null ;
4661+
46134662 /**
46144663 * Use this routine to reset all host parameters to NULL.
46154664 *
@@ -4645,6 +4694,18 @@ export type CAPI = {
46454694 */
46464695 sqlite3_column_name : ( stmt : StmtPtr , N : number ) => string ;
46474696
4697+ /**
4698+ * The sqlite3_column_decltype(S,N) routine returns the declared type of the
4699+ * N-th column in the result set of the prepared statement S.
4700+ *
4701+ * C Signature:
4702+ *
4703+ * const char *sqlite3_column_decltype(sqlite3_stmt*, int);
4704+ *
4705+ * See https://www.sqlite.org/c3ref/column_decltype.html
4706+ */
4707+ sqlite3_column_decltype : ( stmt : StmtPtr , N : number ) => string | null ;
4708+
46484709 /**
46494710 * Returns the result of passing the result of
46504711 * `sqlite3_column_value(pStmt,iCol)` to `sqlite3_value_to_js()`. The 3rd
@@ -5190,6 +5251,16 @@ export type CAPI = {
51905251 xDelete : ( ( ) => void ) | WasmPointer ,
51915252 ) => void ;
51925253
5254+ /**
5255+ * Sqlite3_set_errmsg() is a WASM-internal-use-only function which is like
5256+ * sqlite3_result_error() but targets a database connection's error state.
5257+ */
5258+ sqlite3_set_errmsg : (
5259+ db : DbPtr ,
5260+ errCode : number ,
5261+ msg : string | WasmPointer ,
5262+ ) => Sqlite3Result ;
5263+
51935264 /**
51945265 * Sets the result from an application-defined function to be the `BLOB` whose
51955266 * content is pointed to by the second parameter and which is `blobLen` bytes
@@ -5571,6 +5642,19 @@ export type CAPI = {
55715642 */
55725643 sqlite3_db_name : ( db : DbPtr , dbIdx : number ) => string ;
55735644
5645+ /**
5646+ * The sqlite3_db_readonly(D,N) interface returns 1 if the database N of
5647+ * connection D is read-only, 0 if it is read/write, or -1 if N is not the
5648+ * name of a database on connection D.
5649+ *
5650+ * C Signature:
5651+ *
5652+ * int sqlite3_db_readonly(sqlite3*, const char *zDbName);
5653+ *
5654+ * See https://www.sqlite.org/c3ref/db_readonly.html
5655+ */
5656+ sqlite3_db_readonly : ( db : DbPtr , dbName : string | WasmPointer ) => number ;
5657+
55745658 /**
55755659 * Return The Filename For A Database Connection
55765660 *
0 commit comments