bun:sqlite named parameters without special symbol #11142
vanodevium
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
better-sqlite3 library can do it without special symbols. when symbols are required, we have to destructure the input. However , destructuring should be left to developer's choice . Being forced to use symbols also makes the code a bit more ugly when reading. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is the problem this feature would solve?
In my opinion, this will greatly simplify and unify the use of named parameters, as well as allow in the future to create wrappers that will be able to use SQLite in different runtimes.
What is the feature you are proposing to solve the problem?
Let's imagine we have next statement:
For now we have to set parameters as they are described in the query, so we use this notation:
It would be very useful to support also next notation:
Is there any chance to implement this functionality?
What alternatives have you considered?
No response
Beta Was this translation helpful? Give feedback.
All reactions