Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust
by mborch on Saturday February 06, 2016 @03:50AM
(#11047041)
You can use a CASE-statement for each possible filter and apply it only if the filter value(s) are non-trivial.
This has zero cost in the case where :filter is unset.
[ Parent
| on HN ]