Fork me on GitHub
#hugsql
<
2023-03-15
>
vinurs07:03:58

hello, i find the example

-- :snip cond-snip
-- We could come up with something
-- quite elaborate here with some custom
-- parameter types that convert := to =, etc.,
-- Examples:
-- {:conj "and" :cond ["id" "=" 1]}
-- OR
-- {:conj "or" :cond ["id" "=" 1]}
-- note that :conj can be "", too
:sql:conj :i:cond.0 :sql:cond.1 :v:cond.2
then how can i make this to use ["id" "IN" [1 2]]