Hacker News new | ask | show | jobs
by andix 1242 days ago
A lot of ORMs create SQL statements too, they have an integrated query builder. And functionality for updating, deleting and even creating/modifying schemas (migrations).

But as always: use the right tool for the job. A hammer is a great tool, but not suitable for removing screws (most of the time).

1 comments

> A lot of ORMs create SQL statements too, they have an integrated query builder.

These are technically active record libraries. One of the popular ones is literally known as ActiveRecord, but the whole suite of them are implementations of the active record pattern.

ORM is simply the process of converting relations (i.e. sets of tuples, i.e. rows and columns) into structured objects and back again. This layer of concern is independent of query generation.

What everyone's talking about here is what is commonly referred to as an ORM by everyone apart from you, apparently.