EDIT: Unless you're often switching between relational databases, which is the perfect use case for an ORM.
EDIT EDIT: I guess the point I'm trying to make is that database query languages aren't scary. Learn them rather than and unlock their full power without constraints of a query builder or ORM.
The main attribute which qualifies something being ORM or not is model hydration, in other words no matter what query I sent, I do not worry about business model mapping. Active Record pattern like in laravel of hibernate in Java are just added fluff to it. So for example https://diesel.rs/ is also an orm.
you're often switching between relational databases
Who does this? I mean, this is one of more silly claims being made about ORM usage. Yeah b la bla bla Uncle Bob database has to be a plugin into the application. ORM helps with this, but it's barely the reason why it's implemented.
EDIT EDIT: I guess the point I'm trying to make is that database query languages aren't scary. Learn them rather than and unlock their full power without constraints of a query builder or ORM.
Oh yeah, lets litter the project with freaking strings all over the place, because why? Becuase we can. Great. I'm sorry, that's so short sighted, f search for usages, who cares about refactoring. It's not enough that template literals are going freaking berserk in recent years, lets add more hard to maintain code. Because language natively can do this on its own.
4
u/libertarianets Dec 10 '19 edited Dec 10 '19
Stop using ORMs.
EDIT: Unless you're often switching between relational databases, which is the perfect use case for an ORM.
EDIT EDIT: I guess the point I'm trying to make is that database query languages aren't scary. Learn them rather than and unlock their full power without constraints of a query builder or ORM.