I think people reach for ORMs because they are afraid of making
mistakes, they do not want to learn SQL, or both. People assume that
their ORM of choice will generate correct (i.e. does what they
intended), valid (i.e. running it won't produce an error, such as a
syntax error), and performant SQL for the queries they need to make,
and that they can do this without learning SQL itself. I think
wanting to avoid mistakes is a very noble goal, but I do not think
ORMs are the right way to acheive it. I also think learning SQL is
unavoidable, and reliance on ORMs are a net hinderance for yourself
and other maintainers. Allow me to explain why I think these things,
and perhaps convince you as well.