From ac3cec4f9f7ee0f8f650466a869a201905bf2b96 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 6 Aug 2026 17:43:03 +0000 Subject: [PATCH 1/2] doc: document close() error when in a sqlite callback Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> --- doc/api/sqlite.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 40ec877ddde3..ba89d1aec8f8 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -295,7 +295,10 @@ added: v22.5.0 --> Closes the database connection. An exception is thrown if the database is not -open. This method is a wrapper around [`sqlite3_close_v2()`][]. +open. An \[`ERR_INVALID_STATE`]\[] error is thrown if the method is called while a +statement is executing, for example from a user-defined function, an aggregate +function, or an authorizer callback. This method is a wrapper around +[`sqlite3_close_v2()`][]. ### `database.loadExtension(path[, entryPoint])` From f76ffe051ce2fa8cdc260f46faced2b4c0526674 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Fri, 7 Aug 2026 08:09:22 -0700 Subject: [PATCH 2/2] fixup! doc: use "such as" instead of "for example from" --- doc/api/sqlite.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index ba89d1aec8f8..adddeb03d566 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -295,8 +295,8 @@ added: v22.5.0 --> Closes the database connection. An exception is thrown if the database is not -open. An \[`ERR_INVALID_STATE`]\[] error is thrown if the method is called while a -statement is executing, for example from a user-defined function, an aggregate +open. An \[`ERR_INVALID_STATE`]\[] error is thrown if the method is called while +a statement is executing, such as inside a user-defined function, an aggregate function, or an authorizer callback. This method is a wrapper around [`sqlite3_close_v2()`][].