From d91543a7316f1746240174fa88beaa4f462301de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Thu, 8 Jan 2026 21:34:57 +0000 Subject: [PATCH 1/3] doc: add sqlite session disposal method PR-URL: https://github.com/nodejs/node/pull/61273 Refs: https://github.com/nodejs/node/pull/58378 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- doc/api/sqlite.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/api/sqlite.md b/doc/api/sqlite.md index 186e70784b94d0..ce6db6186c3396 100644 --- a/doc/api/sqlite.md +++ b/doc/api/sqlite.md @@ -735,11 +735,19 @@ Similar to the method above, but generates a more compact patchset. See [Changes in the documentation of SQLite. An exception is thrown if the database or the session is not open. This method is a wrapper around [`sqlite3session_patchset()`][]. -### `session.close()`. +### `session.close()` Closes the session. An exception is thrown if the database or the session is not open. This method is a wrapper around [`sqlite3session_delete()`][]. +### `session[Symbol.dispose]()` + + + +Closes the session. If the session is already closed, does nothing. + ## Class: `StatementSync` + +* {boolean} + +The `process.traceProcessWarnings` property indicates whether the `--trace-warnings` flag +is set on the current Node.js process. This property allows programmatic control over the +tracing of warnings, enabling or disabling stack traces for warnings at runtime. + +```js +// Enable trace warnings +process.traceProcessWarnings = true; + +// Emit a warning with a stack trace +process.emitWarning('Warning with stack trace'); + +// Disable trace warnings +process.traceProcessWarnings = false; +``` + ## `process.umask()`