Comment

Comment by roflyear

ORMs have other selling points. Primarily, it looks like code and works with tooling designed for code.

So changing a column name or type, for example, is pretty easy to refactor, which may not be true for SQL queries and may take significant testing.

Additionally, ORMs allow you to easily hook into things (post-commit, etc) that is often useful, and to define custom things, like JSON serialization with custom types, without a massive amount of work.

But yes, you make great points I think.

parent roflyear 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton