(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.
(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.
(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
(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.
(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`.
(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
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close