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 builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |