Generating query clauses with korma and clojure
问题 I am trying to generate korma query conditions based on a map of columns and values that I pass into a function. I am finding that when an empty map is passed to korma's where: (select "things" (where conditions)) Generates queries with an empty WHERE which causes a SQL error: SELECT * FROM things WHERE () LIMIT 10 However using this form: (select "things" (if-not (empty? conditions) (where conditions))) Results in an error: "Wrong number of args (1) passed to: core$where" Is there an