Liking cljdoc? Tell your friends :D

stch.sql.format

Format query and DML statements. Use with stch.sql.

Format query and DML statements. Use with stch.sql.
raw docstring

*clause*clj

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

source

*input-params*clj

source

*param-counter*clj

source

*param-names*clj

source

*params*clj

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

source

*subquery?*clj

source

clause-orderclj

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

(expand-binary-ops op & args)
source

fn-aliasesclj

source

fn-handlercljmultimethod

source

formatclj

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

format-clausecljmultimethod

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

(format-join type table pred)
source

format-predicateclj

(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

(format-predicate* pred)
source

infix-fnsclj

source

known-clausesclj

source

quote-identifierclj

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

sqlable?clj

(sqlable? x)
source

to-sqlclj

(to-sql x)
source

ToSQLcljprotocol

-to-sqlclj

(-to-sql x)
source

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

× close