Format query and DML statements. Use with stch.sql.
Format query and DML statements. Use with stch.sql.
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
Determines the order that clauses will be placed within generated SQL
Determines the order that clauses will be placed within generated SQL
(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. :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. :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-predicate pred & {:keys [quoting]})
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close