(no title)
fstephany | 7 months ago
WHERE organization = $1
AND ($2 IS NULL OR starts_with(first_name, $2)
AND ($3 IS NULL OR birth_date > $3)
With SQLx you would have all the params to be Options and fill them according the parameters that were sent to your API.Does that make sense?
yahoozoo|7 months ago
williamdclt|7 months ago