Click here to make these examples interactive with ClojureScript.
sqlingvo.util
*reserved*
dynamic
A set of reserved words that should not be quoted.
assoc-op
(assoc-op op & {:as opts})build-condition
(build-condition condition-type condition & [combine])Helper to build WHERE and HAVING conditions.
concat-in
(concat-in ks coll)conditional-clause
(conditional-clause clause condition)dissoc-op
(dissoc-op k)keyword-str
(keyword-str k)Return the qualified name of the keyword k as a string.
m-bind
(m-bind mv mf)m-result
(m-result x)m-seq
(m-seq ms)‘Executes’ the monadic values in ms and returns a sequence of the basic values contained in them.
sequential
(sequential x)Returns x as a sequential data structure.
set-val
(set-val k v)sql-keyword
(sql-keyword db x)Return the db specific SQL keyword for x.
sql-keyword-hyphenate
(sql-keyword-hyphenate x)sql-name
(sql-name db x)Return the db specific SQL name for x.
sql-name-underscore
(sql-name-underscore x)sql-placeholder-constant
(sql-placeholder-constant & [placeholder])Returns a fn that uses a constant strategy to produce placeholders.
sql-placeholder-count
(sql-placeholder-count & [prefix])Returns a fn that uses a counting strategy to produce placeholders.
sql-quote
(sql-quote db x)Return the db specific quoted string for x.
sql-quote-backtick
(sql-quote-backtick x)sql-quote-double-quote
(sql-quote-double-quote x)sql-quote-fn
(sql-quote-fn db x)Quote an SQL identifier only if needed.
sql-type-name
(sql-type-name type)Return the SQL name for the type keyword.