logoalt Hacker News

valzamtoday at 3:38 PM6 repliesview on HN

The big problem is that raw SQL has pretty bad type inference and linting support in most editors. A query builder can still give you a lot of type safety benefits.


Replies

Arch-TKtoday at 5:07 PM

A query builder is not an ORM.

ORMs build queries for you, but a query builder does not need to be an ORM.

rmunntoday at 3:48 PM

Autocomplete is making me lazy. If I don't see what I'm about to type within two or three characters, I feel like the IDE isn't doing its job of helping me. So being able to type `db.Cust` and autocomplete Customers is really nice. I do know SQL, but yes, the language servers usually have a harder time connecting the SQL to my backend code, whatever language it's in, without quite a lot of config fiddling that pretty much obviates any time savings I would have gained from autocomplete.

show 1 reply
dadietoday at 3:56 PM

I think the bigger problem is that SQL is in almost every language a second-class citizen. And even calling it second-class can be seen as a stretch.

show 2 replies
pjmlptoday at 4:20 PM

Which is why one is better off using IDEs, especially those from DB vendors.

ai_slop_hatertoday at 3:41 PM

The problem is that there is no "SQL" — it's different for every database.

show 3 replies
threethirtytwotoday at 3:42 PM

[dead]