and it will be safe from SQL injection, because `where` is probably defined something like:
function where(strings, ...interpolations) {
var result = "";
for (var i = 0; i < interpolations.length; i++) {
result += strings[i] + this.sql_quote(interpolations[i]);
}
result += strings[interpolations.length];
return this.add_to_query(result);
}
> const kid = sq.from`person`.where`age < ${kids_age}`
and it will be safe from SQL injection, because `where` is probably defined something like:
EDIT: I agree with your EDIT.