Value List Parameters are similar to Value Parameters, but work on lists of values needed for in (...)
queries.
Value List Parameters' type is :value*
, or :v*
for short.
The *
indicates a sequence of zero or more values.
Each value in the list is treated as a value parameter, and the list is joined with a comma.
--:name value-list-param :? :*
select * from characters where name in (:v*:names)
(value-list-param-sqlvec {:names ["Fezzik" "Vizzini"]})
;=> ["select * from characters where name in (?,?)" "Fezzik" "Vizzini"]
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close