Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Writing the query is only half of the work, and it's the easiest since SQL is perfectly fine as a query language (duh... who would have guessed ?). There's also a M in ORM. Good ORMs will give you nice abstractions for querying but will also let you do the query yourself if you ever need it while still mapping these queries to your objects.


The best of both worlds is something like sqlc. You write plain SQL queries and it will generate the "ORM" code for you using the queries you wrote.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: