Closed madhat2r closed 4 years ago
Figured out answer. Putting here for anyone else who might need it.
-- :name get-lists :? :*
Select id, name
from Lists
--~ (str "WHERE "
(clojure.string/join ""
(interpose " AND " (map #(str "name LIKE '%" % "%'") (:key-words params)))))
Does anyone know how this can be accomplished?
(get-lists ["free" "food"])
->I have tried:
But of course that does not work. Can someone point me in the right direction please?