Re:Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
by tomComb on Tuesday June 23, 2026 @11:59AM
(#48647082)
Yes, bun is good locally, but need node support for deployment. So while the bun specific stuff sounds great I feel I need to avoid it.
Re:Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
by MegagramEnjoyer on Tuesday June 23, 2026 @10:17PM
(#48654311)
bun truly made itself unappealing when it did the vibe coded port to rust
Re:Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
by ilbert on Tuesday June 23, 2026 @11:09AM
(#48646249)
I was targeting Bun because I really like its built-in SQL module. I can tweak the TS parser to look for e.g. postgres.js tagged template functions and make it work for that as well. I don't really see any blockers
Re:Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM
by mmkal on Wednesday June 24, 2026 @11:24AM
(#48661364)
have a look at https://sqlfu.dev - if you're using sqlite especially this likely has what you're looking for
(disclaimer: i made sqlfu! and it's pretty early so use with appropriate caution. there's very little to the runtime part of it though, just very thin adapters around battle-tested clients)
Any chance to get it to work with Node?
Unfortunately in my opinion and experience Bun is not really suitable for production. Does it have anything special which makes this possible?