News for hackers. Stuff that matters.
Re:How We Went All In on sqlc/pgx for Postgres and Go by BiteCode_dev on Thursday September 09, 2021 @03:49AM (#28467329)
No, the main benefits of ORM are not to avoid to learn SQL, they are:

• syntactic sugar and language/tooling integration for very common operations;

• a centralized data access API to build upon, that you would have to create anyway with raw SQL;

• a single introspectable source of truth you can use to generate web API, models, data validation/migration and so on.

Eventually, even using an ORM, you will need to learn SQL if you go beyond the toy project.

There are no comments on this comment yet.