Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on ORM is an anti-pattern. Parent comment
SQL isn't even turing complete. How can it be more versatile and flexible than your programming language of choice?
> How would you expect an ORM to generate a "dense" query like this with it's simplistic view of things ?
In SQLAlchemy,
cls.query.filter(<some_condition_on_another_field>).update(dict(one_field=value))
There are no comments on this comment yet.
SQL isn't even turing complete. How can it be more versatile and flexible than your programming language of choice?
> How would you expect an ORM to generate a "dense" query like this with it's simplistic view of things ?
In SQLAlchemy,