Postgres Honeysql utils
Postgres Honeysql utils
(comma-join-args args)
Returns the args comma-joined after applying to-sql to them
Returns the args comma-joined after applying to-sql to them
(get-first x)
Returns the first element if the passed argument is a collection, else return the passed argument as is.
Returns the first element if the passed argument is a collection, else return the passed argument as is.
(prep-check args)
Adds a logical :and
operation if args has multiple vectors
Eg - (prep-check '([:= :a :b])) => [:= :a :b]
(prep-check '([:= :a :b] [:< :a :c])) => [:and [:= :a :b] [:< :a :c]]
Adds a logical `:and` operation if args has multiple vectors Eg - (prep-check '([:= :a :b])) => [:= :a :b] (prep-check '([:= :a :b] [:< :a :c])) => [:and [:= :a :b] [:< :a :c]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close