-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat: Add Deno.sqlite bindings #14627
Conversation
This patch:
Node
Benchmarks for FFI / WASM modules can be found here |
Discussed during the last CLI design meeting, there's no support for this feature from the team (it should be done as a userland module either in WASM or using FFI API), so we're closing this PR. |
That's a real pity. I was looking forward to this. In conjunction with #13122, it would have been a killer feature (at least for my use case 🙃). |
@bartlomieju Could this be re-considered? Looking at the commits I was hoping the release to be completed soon and for my surprise got this message. |
It's was the third time we had reconsidered this feature in 6 months 😅 What is your use-case that requires this to be built in, instead of using a user-land module? |
This is very unfortunate. SQLite is a fundamental piece of technology that is useful in almost every software. @lucacasonato Instead of asking for use-cases (there are too many and it is pointless to list them all), what are the reasons to don't have it in core? Using a third party module adds friction (which one? will it be maintained in the long run? it is optimal or a subpar WASM version?) that should be avoided. |
@lucacasonato, of course, user-land modules are a viable option, but I agree with @mikrosystheme observations. Landing SQLite would allow fast prototyping in Deno with a database out of the box; if/when the prototype grows, you then can change the db with a more scalable solution. Same idea behind including TypeScript in the runtime (JS -> TS). But then again, I suppose it is not sustainable to add everything shiny into Deno. 😅 It is just that seeing this PR growing got me excited about the possibilities that Deno could provide with just a single executable. To answer your question, I have no solid use case that third-party modules cannot solve. But it would be a tangible improvement to DX, and more solid ground to push for Deno adoption. |
Well basically the out of the box feature is something that most people will like. I know there are third party modules that would solve the issue but they will not be as performant as a native built in integration. Also there is a library that uses SQLite bindings using FFI that I think is pretty cool but unfortunately cannot be used in Deno deploy. So having the SQLite built in Deno would be useful for both fast prototyping and secure ACID compliant operations. |
@bartlomieju @lucacasonato could you consider it again please? 😅🙏🏼 I apologize for being such insistent. |
@sant123 I've been and still am supportive of this feature, however there's no broader support from the rest of the team. We might revisit this topic in a few weeks. I suggest to open a new issue or revive an existing one to get more feedback from the community. |
Issue #11657 was re-opened |
#14460