Skip to content

Add statement lifecycle management and explicit close support#214

Open
penberg wants to merge 1 commit intomainfrom
stmt-lifecycle
Open

Add statement lifecycle management and explicit close support#214
penberg wants to merge 1 commit intomainfrom
stmt-lifecycle

Conversation

@penberg
Copy link
Copy Markdown
Contributor

@penberg penberg commented Apr 1, 2026

Track prepared statements via WeakRefs so Database.close() automatically closes all associated statements. Add explicit Statement.close() for manual resource management and Symbol.dispose support for the using syntax. Use-after-close now throws a clear TypeError instead of potentially undefined behavior.

Track prepared statements via WeakRefs so Database.close() automatically
closes all associated statements. Add explicit Statement.close() for
manual resource management and Symbol.dispose support for the `using`
syntax. Use-after-close now throws a clear TypeError instead of
potentially undefined behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant