4 ms·
This is a nice overview! Discussion from back when the SQLite project announced this last year: https://news.ycombinator.com/item?id=33374402 https://news.ycom
by samwillis 4y ago
This is a nice overview!
Discussion from back when the SQLite project announced this last year: https://news.ycombinator.com/item?id=33374402 https://news.ycombinator.com/item?id=33374402
There isn't an "official" NPM package or ES6 model yet, but I believe they are working on it. It's also very much designed for the browser currently, but again I believe they are intending to support server WASM environments too eventually.
- lovasoa 4y agoHey, I am the maintainer of sql.js. I was in contact with them, and I do not think they are working on a npm module, but I offered them to work on the existing "official" sql.js module.
- sgbeal 4y ago> There isn't an "official" NPM package or ES6 model yet (The sqlite team's JS/WASM Guy here...) An ES6 module build was added shortly after the 3.40 release. NPM/node.js are nowhere on our radar. Our build is structured such that people who want to plug it in the resulting JS file to whatever their favorite toolchain is are welcomed to do so, but we have neither the ambition nor the bandwidth to support every build/bundling platform out there, especially ones none of us otherwise use. > It's also very much designed for the browser currently, but again I believe they are intending to support server WASM environments too eventually. The JS code is targeted solely at browsers and there are no plans on changing that in the foreseeable future. The WASM build itself, we are working to provide server-side support for. We have a branch which builds under wasi-sdk, but we cannot create a JS binding for that build until/unless we find some substitute for Emscripten's transparent translation of POSIX I/O APIs.
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- justsomeuser 4y agoBeing able to `npm install` this for a frontend app would be very useful.
- simonw 4y agoI do think it would be worth SQLite having an "official" npm package - even though setting it up in the first place would require quite a bit of effort. The JavaScript world is culturally so dependent on npm now that adoption of SQLite in that world would massively increase given the availability of a good "official" package. And without an official one I imagine there will quickly emerge dozens of unofficial ones, many of which will end up poorly maintained in the future.
- tracker1 4y agoEspecially with the number of "unofficial" packages doing this in a less than standard way.
- justsomeuser 4y agoI agree. It seems strange that they would make an official version and then not add it to the official JS package manager. It seems like Chrome is paying them for the “deliverable” of a JS version, but the spec did not include “npm installable”.
- sgbeal 4y ago> It seems strange that they would make an official version and then not add it to the official JS package manager. None of us in the sqlite use npm in any way, shape, or form, so there's nothing at all unusual about us not publishing anything there. > It seems like Chrome is paying them for the “deliverable” of a JS version, but the spec did not include “npm installable”. Like all deliverables released via the sqlite project, this one was conceived and created as a deliverable which can be distributed through the existing project-level infrastructure. What other people do with it, through whatever infrastructure they like, is entirely up to them. Getting involved with such tooling is way out of scope for us.