Von_Broheim, 9 months ago Yeah, that’s great, until you need to conditionally compose a query. Suddenly your pre baked queries are not enough. So you either: create your own shitty ORM based on string concatenation create your own shitty ORM or use a well supported ORM, those almost always support query composition and native queries You write like it’s ORM vs native. ORMs let you write native queries and execute them while also doing all the tedious work for you such as: mapping results to model objects SQL injection safety query composition connection builders transaction management So if you love native queries write native queries in an ORM which will do all the tedious shit for you.
Yeah, that’s great, until you need to conditionally compose a query. Suddenly your pre baked queries are not enough. So you either:
You write like it’s ORM vs native. ORMs let you write native queries and execute them while also doing all the tedious work for you such as:
So if you love native queries write native queries in an ORM which will do all the tedious shit for you.