2 ms·
I agree that ORMs have a very narrow area of applicability, at best. OTOH I do appreciate when a library allows to construct SQL from first-class, reusable par
by nine_k 5y ago
I agree that ORMs have a very narrow area of applicability, at best.
OTOH I do appreciate when a library allows to construct SQL from first-class, reusable parts, like SQLAlchemy allows in Python. Using the same where-clause object in both select and update operations, or combining descriptively named filter clauses to create or amend a where clause, or easily constructing CTEe from other queries, etc — this all is pretty empowering, and, most importantly, expresses the logic better.