News for hackers. Stuff that matters.
Re:Show HN: Rust Web Framework by dragonwriter on Tuesday October 22, 2024 @08:52PM (#41920435)
Query results are actual, if transitory, relations.

And db updates are either relations or tuples (and a tuple is a relation with cardinality of 1, so...)

Re:Show HN: Rust Web Framework by wtetzner on Tuesday October 22, 2024 @08:58PM (#41920476)
You can be pedantic if you like, but this is obviously not what anyone means by "ORM".
Re:Show HN: Rust Web Framework by dragonwriter on Tuesday October 22, 2024 @09:00PM (#41920490)
Its literally the exact things that ORMs map between: query results -> objects and object changes -> database updates.
Re:Show HN: Rust Web Framework by wtetzner on Wednesday October 30, 2024 @08:50AM (#41994256)
No, ORMs abstract away the relational database and present it as if it were some kind of object database. Needing to map query results to structs is just incidental, and is completely missing the point of an ORM.

If copying query results to a list of structs is enough to qualify as an ORM, then the term is so generic as to be entirely useless.