Liking cljdoc? Tell your friends :D

asphalt.param


date->calclj

(date->cal date tz-or-cal)

Given a (local) date and a timezone/calendar instance, return a calendar suitable to set SQL date param.

Given a (local) date and a timezone/calendar instance, return a calendar suitable to set SQL date param.
sourceraw docstring

default-param-typesclj

source

lay-paramscljmacro

(lay-params prepared-stmt param-key-type-pairs params)
(lay-params prepared-stmt param-keys param-types params)

Given literal SQL param types and keys, return an expression to set vector/map params on a JDBC prepared statement.

Given literal SQL param types and keys, return an expression to set vector/map params on a JDBC prepared statement.
sourceraw docstring

lay-params*cljmacro

(lay-params* prepared-stmt param-keys param-types params)

Implementation detail of asphalt.param/lay-params. See: asphalt.param/lay-params

Implementation detail of asphalt.param/lay-params.
See:
  asphalt.param/lay-params
sourceraw docstring

make-params-layerclj

(make-params-layer param-keys param-types)

Given param keys and types, return a type-aware efficient params setter fn.

Given param keys and types, return a type-aware efficient params setter fn.
sourceraw docstring

param-keysclj

(param-keys params)

Given a vector/map/nil of SQL params return param keys for use with set-params.

Given a vector/map/nil of SQL params return param keys for use with `set-params`.
sourceraw docstring

set-paramsclj

(set-params prepared-stmt params)
(set-params prepared-stmt param-key-type-pairs params)
(set-params prepared-stmt param-keys param-types params)

Given prepared statement and a vector/map/nil of SQL params, set the params at runtime. See: asphalt.param/default-param-types asphalt.param/param-keys

Given prepared statement and a vector/map/nil of SQL params, set the params at runtime.
See:
  asphalt.param/default-param-types
  asphalt.param/param-keys
sourceraw docstring

set-params-with-query-timeoutclj

(set-params-with-query-timeout n-seconds)

Return a params setter fn usable with asphalt.core/query, that times out on query execution and throws a java.sql.SQLTimeoutException instance. Supported by JDBC 4.0 (and higher) drivers only.

Return a params setter fn usable with asphalt.core/query, that times out on query execution and throws a
java.sql.SQLTimeoutException instance. Supported by JDBC 4.0 (and higher) drivers only.
sourceraw docstring

time->calclj

(time->cal time tz-or-cal)

Given a (local) time and a timezone/calendar instance, return a calendar suitable to set SQL time param.

Given a (local) time and a timezone/calendar instance, return a calendar suitable to set SQL time param.
sourceraw docstring

timestamp->calclj

(timestamp->cal timestamp tz-or-cal)

Given a (local) timestamp and a timezone/calendar instance, return a calendar suitable to set SQL timestamp param.

Given a (local) timestamp and a timezone/calendar instance, return a calendar suitable to set SQL timestamp param.
sourceraw docstring

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

× close