aboutsummaryrefslogtreecommitdiff
path: root/crates/secd/store/pg/sql/find_address.sql
blob: 5eaafbbcd61ff67fdb966696210cc30fa7b06dfc (plain)
1
2
3
4
5
6
7
8
select address_public_id
       , type
       , value
       , created_at
from secd.address
where (($1::uuid is null) or (address_public_id = $1))
and (($2::text is null) or (type = $2))
and (($3::text is null) or (value = $3));