During formatting, clause is bound to :select, :from, :where, etc.
During formatting, *clause* is bound to :select, :from, :where, etc.
Will be bound to an atom-vector that accumulates SQL parameters across possibly-recursive function calls
Will be bound to an atom-vector that accumulates SQL parameters across possibly-recursive function calls
(add-anon-param pval)
(add-param pname pval)
(comma-join s)
(cte->sql [cte-name query])
Determines the order that clauses will be placed within generated SQL
Determines the order that clauses will be placed within generated SQL
(expand-binary-ops op & args)
(format sql-map & params-or-opts)
Takes a SQL map and optional input parameters and returns a vector of a SQL string and parameters, as expected by clojure.java.jdbc.
Input parameters will be filled into designated spots according to name (if a map is provided) or by position (if a sequence is provided).
Instead of passing parameters, you can use keyword arguments: :params - input parameters :quoting - quote style to use for identifiers; one of :ansi (PostgreSQL), :mysql, :sqlserver, or :oracle. Defaults to no quoting. :parameterizer - style of parameter naming, :postgresql, :jdbc or :none. Defaults to :jdbc. :return-param-names - when true, returns a vector of [sql-str param-values param-names]
Takes a SQL map and optional input parameters and returns a vector of a SQL string and parameters, as expected by clojure.java.jdbc. Input parameters will be filled into designated spots according to name (if a map is provided) or by position (if a sequence is provided). Instead of passing parameters, you can use keyword arguments: :params - input parameters :quoting - quote style to use for identifiers; one of :ansi (PostgreSQL), :mysql, :sqlserver, or :oracle. Defaults to no quoting. :parameterizer - style of parameter naming, :postgresql, :jdbc or :none. Defaults to :jdbc. :return-param-names - when true, returns a vector of [sql-str param-values param-names]
Takes a map entry representing a clause and returns an SQL string
Takes a map entry representing a clause and returns an SQL string
(format-join type table pred)
(format-predicate pred
&
{:keys [quoting parameterizer] :or {parameterizer :jdbc}})
Formats a predicate (e.g., for WHERE, JOIN, or HAVING) as a string.
Formats a predicate (e.g., for WHERE, JOIN, or HAVING) as a string.
(format-predicate* pred)
(map->sql m)
(to-params value pname)
(paren-wrap x)
(quote-identifier x & {:keys [style split] :or {split true}})
(register-clause! clause-key priority)
(regularize sql-string)
(seq->sql x)
(sort-clauses clauses)
(space-join s)
(sqlable? x)
(to-params-default value pname)
(to-params-seq s pname)
(to-sql-value x)
(to-sql x)
(value x)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close