Hacker News new | ask | show | jobs
by stephenr 2150 days ago
Define “use sql”?

Most of the time on $client project we use a query builder, so it’s expressing the intended query as methods.

You’d have a hard time using it without understanding what operations you want - it just handles all the repetitive stuff for you.

Then there’s times when we need a query that’s too complex for what the QB methods support, so we use the custom query mode, where we can mix specific parts of a custom query with some of the stuff the QB generates.