doc: add using keyword examples to sqlite#59765
doc: add using keyword examples to sqlite#59765araujogui wants to merge 3 commits intonodejs:mainfrom
Conversation
|
Review requested:
|
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
|
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
usingkeyword usage examples tosqlitedocs.Shows how
DatabaseSynccan be scoped withusingso the connection isclosed automatically. Makes
Symbol.disposeusage clearer and easier todiscover.