2 ms·
The best of both worlds is just to... actually understand the ORM you choose to use. I'm always confused by how reluctant folks are, in general, to read underl
by jaggederest 9y ago
The best of both worlds is just to... actually understand the ORM you choose to use.
I'm always confused by how reluctant folks are, in general, to read underlying libraries.
- Can_Not 9y agoYou don't even have to read the library source, just verify the SQL statements generated. Most ORMs let you drop into raw SQL for advanced clauses and sub-statements. For me there value of an ORM is composable business logic. For example, if whereHasLotsOfTrees is a complicated SQL subquery and has it's business logic definition changed, I can edit only one function and have the new logic work everywhere.