Skip to content

Commit 45b067e

Browse files
committed
doc: document close() error when in a sqlite callback
Signed-off-by: Trivikram Kamat <16024985+trivikr@users.noreply.github.com>
1 parent 3d80990 commit 45b067e

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
@@ -295,7 +295,10 @@ added: v22.5.0
295295
-->
296296

297297
Closes the database connection. An exception is thrown if the database is not
298-
open. This method is a wrapper around [`sqlite3_close_v2()`][].
298+
open. An [`ERR_INVALID_STATE`][] error is thrown if the method is called while a
299+
statement is executing, for example from a user-defined function, an aggregate
300+
function, or an authorizer callback. This method is a wrapper around
301+
[`sqlite3_close_v2()`][].
299302

300303
### `database.loadExtension(path[, entryPoint])`
301304

0 commit comments

Comments
 (0)