Hacker News new | ask | show | jobs
by yunohn 1359 days ago
What’s a good solution for that without a classic ORM?
2 comments

Conditional text interpolation with named parameter bindings works quite well. We’ve basically abandoned the ORM for select queries at work as we find this approach more readable.
That sounds… flakey. Variable interpolated query strings are not even close to a substitute for an ORM?
Results are easily decomposed if you composed the query.