Re:What ORMs have taught me: just learn SQL (2014)
by dsego on Saturday September 21, 2019 @07:40AM
(#21034716)
> I find much better to have a module with all my SQL queries as strings.
But you can't compose them, so there is a lot of duplication. Also, how would you handle dynamic filters and columns? Concatenating strings? That seems error prone. At least a nice query builder would be useful, but then the whole just write sql thing falls apart.
But you can't compose them, so there is a lot of duplication. Also, how would you handle dynamic filters and columns? Concatenating strings? That seems error prone. At least a nice query builder would be useful, but then the whole just write sql thing falls apart.