Liking cljdoc? Tell your friends :D

honeysql.format


*all-param-counter*clj/s

source

*allow-dashed-names?*clj/s

source

*clause*clj/s

During formatting, clause is bound to :select, :from, :where, etc.

During formatting, *clause* is bound to :select, :from, :where, etc.
sourceraw docstring

*fn-context?*clj/s

source

*input-params*clj/s

source

*param-counter*clj/s

source

*param-names*clj/s

source

*parameterizer*clj/s

source

*params*clj/s

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

*quote-identifier-fn*clj/s

source

*subquery?*clj/s

source

add-anon-paramclj/s

(add-anon-param pval)
source

add-paramclj/s

(add-param pname pval)
source

clause-storeclj/s

source

comma-joinclj/s

(comma-join s)
source

cte->sqlclj/s

(cte->sql [cte-name query])
source

default-clause-prioritiesclj/s

Determines the order that clauses will be placed within generated SQL

Determines the order that clauses will be placed within generated SQL
sourceraw docstring

expand-binary-opsclj/s

(expand-binary-ops op & args)
source

fn-aliasesclj/s

source

fn-handlerclj/smultimethod

source

formatclj/s

(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, one of :postgresql or :jdbc, 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, one of :postgresql or :jdbc, defaults to :jdbc
  :return-param-names - when true, returns a vector of
                        [sql-str param-values param-names]
sourceraw docstring

format-clauseclj/smultimethod

Takes a map entry representing a clause and returns an SQL string

Takes a map entry representing a clause and returns an SQL string
sourceraw docstring

format-joinclj/s

(format-join type table pred)
source

format-lock-clauseclj/smultimethod

source

format-predicateclj/s

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

format-predicate*clj/s

(format-predicate* pred)
source

infix-fnsclj/s

source

map->sqlclj/s

(map->sql m)
source

Parameterizableclj/sprotocol

to-paramsclj/s

(to-params value pname)
source

paren-wrapclj/s

(paren-wrap x)
source

quote-identifierclj/s

(quote-identifier x & {:keys [style split] :or {split true}})
source

register-clause!clj/s

(register-clause! clause-key priority)
source

seq->sqlclj/s

(seq->sql x)
source

sort-clausesclj/s

(sort-clauses clauses)
source

space-joinclj/s

(space-join s)
source

sqlable?clj/s

(sqlable? x)
source

to-params-defaultclj/s

(to-params-default value pname)
source

to-params-seqclj/s

(to-params-seq s pname)
source

ToSqlclj/sprotocol

to-sqlclj/s

(to-sql x)
source

valueclj/s

(value x)
source

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

× close