(->joins criteria {:keys [table relationships] :as opts})
Given a criteria map, return a sequence of join clauses that includes all tables in the criteria, plus the target table.
Given a criteria map, return a sequence of join clauses that includes all tables in the criteria, plus the target table.
(->query criteria & [{:keys [target named-params skip-format?] :as opts}])
Translate a criteria map into a SQL query
Note that when map values are keywords, some assumptions are made.
If a keyword has a namespace, it is assumed to be a column reference. A keyword without a namespace is assumed to be a value that must be converted to a string.
Translate a criteria map into a SQL query Note that when map values are keywords, some assumptions are made. If a keyword has a namespace, it is assumed to be a column reference. A keyword without a namespace is assumed to be a value that must be converted to a string.
(build-select table {:keys [select-also select]})
Construct the select clause.
By default, this is <table>.*.
You can specified :select, which will replace the default, or :select-also, which will supplement the default.
Construct the select clause. By default, this is <table>.*. You can specified :select, which will replace the default, or :select-also, which will supplement the default.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close