Hacker News new | ask | show | jobs
by codedokode 12 days ago
One usually uses "query builder" pattern for that.

Also, regarding placeholders, historically many DB and frameworks do not support passing lists for a value in a placeholder (like "WHERE id IN(?)") so users of such software fall back to string concatenation.

1 comments

ORMs and query builders ARE concatenating strings.
But in a safe manner.
You can do that too.