3 ms·
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...)
by dragonwriter 2y ago
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...)
- wtetzner 2y agoYou can be pedantic if you like, but this is obviously not what anyone means by "ORM".
- dragonwriter 2y agoIts literally the exact things that ORMs map between: query results -> objects and object changes -> database updates.
- wtetzner 2y agoNo, 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.