logoalt Hacker News

Arch-TKyesterday at 5:07 PM1 replyview on HN

A query builder is not an ORM.

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


Replies

win311fwgtoday at 3:52 PM

ORMs do not inherently build queries. They only provide data transformations between relations (i.e. rows and columns) and objects. Hence the literal name: Object relation mapping. You can absolutely have ORM without query building just as much as you can have query building without ORM.

Sometimes ORMs and query builders are combined into a higher order system, such as what is described by the active record pattern. This might be what you are actually thinking of instead?