-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
doc: add using keyword examples to sqlite #59765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
Co-authored-by: Bart Louwers <[email protected]>
Is there a reason why all the examples should be like that? I wonder if we can have a variety of them. |
Since this is a new feature, I believe we should introduce it by demonstrating its use and reinforcing best practices to improve the ecosystem |
It's definitely something we want to have in the docs. I don't see a reason for doing that for all examples, though. |
I agree that it should not be used in all examples, especially considering:
|
What if we have one example in this section? |
Worth pointing out that any use of |
Add
using
keyword usage examples tosqlite
docs.Shows how
DatabaseSync
can be scoped withusing
so the connection isclosed automatically. Makes
Symbol.dispose
usage clearer and easier todiscover.