GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — sqlite: tidy up handle ownership and lifetimes by araujogui · Pull Request #66912 · nodejs/node Conversation
Member
Ownership cleanups in
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsStatement::Close() untracks itself, so the constructor should track itself too, like Session does, instead of relying on every caller. Signed-off-by: Guilherme Araújo <[email protected]> Replace the custom deleter structs and OnScopeLeave cleanups with DeleteFnPtr aliases, and pass session ownership to Session::Create. Signed-off-by: Guilherme Araújo <[email protected]> Route every exit through Settle(), which finalizes, settles the promise and deletes the job once. This also frees the job when building the progress object fails. Signed-off-by: Guilherme Araújo <[email protected]> Store the template on the environment like the other sqlite classes, so stores no longer get a fresh template and prototype each time. Signed-off-by: Guilherme Araújo <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #66912 +/- ## ========================================== + Coverage 90.51% 90.58% +0.06% ========================================== Files 797 797 Lines 278252 278487 +235 Branches 53472 53531 +59 ========================================== + Hits 251868 252257 +389 + Misses 16761 16584 -177 - Partials 9623 9646 +23
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Failed to start CIFull Auto Start CI output |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 4b9caf0...510d84c |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Statement::Close() untracks itself, so the constructor should track itself too, like Session does, instead of relying on every caller. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Replace the custom deleter structs and OnScopeLeave cleanups with DeleteFnPtr aliases, and pass session ownership to Session::Create. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Route every exit through Settle(), which finalizes, settles the promise and deletes the job once. This also frees the job when building the progress object fails. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Store the template on the environment like the other sqlite classes, so stores no longer get a fresh template and prototype each time. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Statement::Close() untracks itself, so the constructor should track itself too, like Session does, instead of relying on every caller. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Replace the custom deleter structs and OnScopeLeave cleanups with DeleteFnPtr aliases, and pass session ownership to Session::Create. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Route every exit through Settle(), which finalizes, settles the promise and deletes the job once. This also frees the job when building the progress object fails. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Store the template on the environment like the other sqlite classes, so stores no longer get a fresh template and prototype each time. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Statement::Close() untracks itself, so the constructor should track itself too, like Session does, instead of relying on every caller. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Replace the custom deleter structs and OnScopeLeave cleanups with DeleteFnPtr aliases, and pass session ownership to Session::Create. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Route every exit through Settle(), which finalizes, settles the promise and deletes the job once. This also frees the job when building the progress object fails. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Store the template on the environment like the other sqlite classes, so stores no longer get a fresh template and prototype each time. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: #66912 Reviewed-By: Trivikram Kamat <[email protected]>
Statement::Close() untracks itself, so the constructor should track itself too, like Session does, instead of relying on every caller. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: nodejs#66912 Reviewed-By: Trivikram Kamat <[email protected]>
Replace the custom deleter structs and OnScopeLeave cleanups with DeleteFnPtr aliases, and pass session ownership to Session::Create. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: nodejs#66912 Reviewed-By: Trivikram Kamat <[email protected]>
Route every exit through Settle(), which finalizes, settles the promise and deletes the job once. This also frees the job when building the progress object fails. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: nodejs#66912 Reviewed-By: Trivikram Kamat <[email protected]>
Store the template on the environment like the other sqlite classes, so stores no longer get a fresh template and prototype each time. Signed-off-by: Guilherme Araújo <[email protected]> PR-URL: nodejs#66912 Reviewed-By: Trivikram Kamat <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.