3 ms·
In many cases that may be true, but not in the case of the parent comment you're responding to. The parent identifies a scenario where you have a faceted search
by michaelmior 8y ago
In many cases that may be true, but not in the case of the parent comment you're responding to. The parent identifies a scenario where you have a faceted search functionality that generates conditions in the where clause of the query dynamically).
- coldtea 8y agoSo? What prevents those conditions to be generated as a number of SQL fragments that are statically checked for injection? What would be checked by Rust is the actual fitness of the fragments, not if your building them in a loop from pre-made WHERE, AND etc clauses + placeholders.
- michaelmior 8y agoDefinitely possible. Just more nuanced than the approach suggested in the article.