Skip to content

Commit f8ab361

Browse files
trivikraduh95
authored andcommitted
doc: document close() error when in a sqlite callback
Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> PR-URL: #65090 Refs: #64743 Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Edy Silva <edigleyssonsilva@gmail.com>
1 parent 59827ac commit f8ab361

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎doc/api/sqlite.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ added: v22.5.0
298298
-->
299299

300300
Closes the database connection. An exception is thrown if the database is not
301-
open. This method is a wrapper around [`sqlite3_close_v2()`][].
301+
open. An [`ERR_INVALID_STATE`][] error is thrown if the method is called while
302+
a statement is executing, such as inside a user-defined function, an aggregate
303+
function, or an authorizer callback. This method is a wrapper around
304+
[`sqlite3_close_v2()`][].
302305

303306
### `database.loadExtension(path[, entryPoint])`
304307

0 commit comments

Comments
 (0)