This namespace provides some tools to work with jdbc result sets
This namespace provides some tools to work with jdbc result sets
(as-maps-with-keys rs opts)
A result set builder where you pass in the keys of each map in order. Useful when you know ahead of time which keys will be returned in what order.
A result set builder where you pass in the keys of each map in order. Useful when you know ahead of time which keys will be returned in what order.
(as-qualified-maps rs opts)
A result set builder, but instead of using a :label-fn
and
:qualifier-fn
, it requires a key-fn
in the sql-opts. key-fn
takes a table name and column name straight from the result-set
meta, and returns the fully qualified key.
A result set builder, but instead of using a `:label-fn` and `:qualifier-fn`, it requires a `key-fn` in the sql-opts. `key-fn` takes a table name and column name straight from the result-set meta, and returns the fully qualified key.
(coerce-result-sets!)
Will extend the JDBC ReadableColumn protocol to coerce common values like vectors, dates and json objects to clojure datastructures. This function must be called in order for RAD to function properly.
Will extend the JDBC ReadableColumn protocol to coerce common values like vectors, dates and json objects to clojure datastructures. This function must be called in order for RAD to function properly.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close