Hacker News new | ask | show | jobs
by techdragon 1414 days ago
Because ORMs exist to avoid writing the SQL. The workflow is ORM first, then if it’s not good enough, optimise, then if that’s not enough, drop down to raw SQL. If your just writing the SQL then you kinda don’t need it. Most ORMs have a mechanism to pass on a raw SQL query and serialise the results into the appropriate objects/structs.