Skip to content

Commit 7d712ae

Browse files
authored
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 6a447d7 commit 7d712ae

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
@@ -309,7 +309,10 @@ added: v22.5.0
309309
-->
310310

311311
Closes the database connection. An exception is thrown if the database is not
312-
open. This method is a wrapper around [`sqlite3_close_v2()`][].
312+
open. An [`ERR_INVALID_STATE`][] error is thrown if the method is called while
313+
a statement is executing, such as inside a user-defined function, an aggregate
314+
function, or an authorizer callback. This method is a wrapper around
315+
[`sqlite3_close_v2()`][].
313316

314317
### `database.loadExtension(path[, entryPoint])`
315318

0 commit comments

Comments
 (0)