(->joins criteria {:keys [target 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 [named-params skip-format? quoted?] :as options}])
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 {:keys [select-also select table-fn column-fn table]})
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