Live data from Hacker News

Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

github.com

41–44 of 44 posts

Re: Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

#42
post #34

Earlier quoted context omitted.

Kysely is really cool, but I don't like that you are not writing SQL directly

You can use sql `query` anywhere you like combined with query builder syntax (or not) when you want to write raw sql and maintain type inference.

sql`query` is the reason why I started bun-sqlgen, to not have to write types manually

Re: Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

#43

Those looking for a more mature solution in this space will probably enjoy SQLc [1]. It was initially developed for Go applications, but over the years it got pluggins for many other languages, including JavaScript/Typescript. [1] https://sqlc.dev/

And sqlx on the Rust side just for completeness

That's actually the library that inspired me the most for building bun-sqlgen

Re: Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

#44
post #16

This is cool, but when the very first paragraph of the readme is clearly LLM generated, it makes me doubt the quality of the project.

you can review the code and decide if the quality is up to par?

They reviewed the readme and decided the quality wasn't up to par. Perfectly valid IMO, given reviewing code you didn't write is an investment.
Post reply on HN