Liking cljdoc? Tell your friends :D

stowaway.sql-qualified


->joinsclj

(->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.
sourceraw docstring

->queryclj

(->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.
sourceraw docstring

->updateclj

(->update changes criteria & {:as opts :keys [target]})
source

->whereclj

(->where criteria opts)
source

apply-limitclj

source

apply-offsetclj

source

apply-sortclj

(apply-sort sql {:keys [sort] :as opts})
source

build-selectclj

(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.
sourceraw docstring

delimitcljmultimethod

source

select-countclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close