Uh oh!
There was an error while loading. Please reload this page.
doc: finalize statements in sqlite examples - #65088
Conversation
nodejs-github-bot
commented
Aug 6, 2026
Review requested:
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the SQLite API documentation examples to ensure prepared statements are properly finalized/closed, reducing the risk of leaking statement handles.
Changes:
- Added explicit
.close()calls to prepared statements in introductory examples. - Replaced one-liner
prepare(...).get()usage withusingdeclarations to leverage automatic disposal. - Updated session-related examples to use
usingfor prepared statements.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Renegade334
left a comment
There was a problem hiding this comment.
GitHub Actions turbo-died on this commit for some reason, it might be easier just to rebase.
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
a5ef016 to
e73c46bCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
Aug 8, 2026
Landed in 862d994 |
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com> PR-URL: #65088 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com> PR-URL: #65088 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com> PR-URL: #65088 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The examples left prepared statements to be finalized implicitly. Use
close()in the introductory example andusingin the shorter ones.Refs: #64232 (review)