4 ms·
Bun provides native MySQL, SQlite, and Postgres drivers. I'm not saying Node should support every db in existence but the ones I listed are critical infrastruc
by pier25 7mo ago
Bun provides native MySQL, SQlite, and Postgres drivers.
I'm not saying Node should support every db in existence but the ones I listed are critical infrastructure at this point.
When using Postgres in Node you either rely on the old pg which pulls 13 dependencies[1] or postgres[2] which is much better and has zero deps but mostly depends on a single guy.
[1] https://npmgraph.js.org/?q=pg https://npmgraph.js.org/?q=pg
[2] https://github.com/porsager/postgres https://github.com/porsager/postgres
- adzm 7mo agoNode has sqlite, though I have not had any issues using better-sqlite3 and worker processes for long running ops
- pier25 7mo agoUntil the day it gets pwned by a malicious actor. Which is something we've seen quite a lot of times on npm deps.
- zadikian 7mo agoMaybe MySQL and Postgres should make official Node libs then. Bun maintaining this is ok too, but it seems odd given that it means having to keep up with new features in those DBMSes.
- pier25 7mo ago> but it seems odd given that it means having to keep up with new features in those DBMSes That would be more useful for the ecosystem than the Node team investing time on a virtual file system.
- zadikian 7mo agoHard to compare, but reason #1 of bundling an app is a pretty big deal that can't be solved with just a library.