Code comparison between ORM (doctrine) and SQL?

I read a lot about ORM, but I wonder if there are examples of comparisons between ORM as a doctrine and SQL so you can see which is easier to maintain?

could not find such comparisons in google.

+3
source share
2 answers

I do not know such code comparisons, but personally I prefer to use ORM, because it allows me to express queries in terms of "business" rather than "tabular" terms .. For example

Query(Customer).filter_by(Customer.address.has(Address.state == 'Whatever'))
+1
source

" " . ORM . SQL . , ORM, , . SQL.

, ORM , .

+3

Source: https://habr.com/ru/post/1741222/


All Articles