Repository navigation
refactor: use pragma method in better-sqlite3 - #10684
Conversation
This is the recommended way to run pragmas.
gioboa
left a comment
There was a problem hiding this comment.
Thank you @mohd-akram for your help.
Are any drawbacks about this change?
|
@gioboa No drawbacks that I'm aware of. |
Thanks 👍 |
If you want to use bun's sqlite driver (similar to Bun-related issue: #11236 |
gioboa
left a comment
There was a problem hiding this comment.
So this is not working with bun 🤔
An idea is to check the runtime and create a condition in the code eg. detect Bun.
What do you think?
|
We don't support bun at the moment, so my comment was there just in case we would like to 🤷🏻 I played a bit with Later edit: bun has a ticket to add support for |
|
what is the status of this PR? have the admins agreed or disagreed to review/merge this work? |
gioboa
left a comment
There was a problem hiding this comment.
It looks good to me
Thanks @mohd-akram
PR Code Suggestions ✨No code suggestions found for the PR. |
commit: |
gioboa
left a comment
There was a problem hiding this comment.
Tests are fine.
What's the benefit of using pragma ? is it faster? reliable?
|
hmm,
|
gioboa
left a comment
There was a problem hiding this comment.
Thanks for your help @mohd-akram
Description of change
Use the
pragmamethod in better-sqlite3. This is the recommended way to run pragmas.Pull-Request Checklist
masterbranchnpm run formatto apply prettier formattingnpm run testpasses with this change