Liking cljdoc? Tell your friends :D

lib.jdbc.resultset

ResultSet conversion functions.

ResultSet conversion functions.
raw docstring

result-set->lazyseqclj

(result-set->lazyseq
  conn
  rs
  {:keys [identifiers as-rows? header?]
   :or {identifiers str/lower-case as-rows? false header? false}
   :as options})

Function that wraps result in a lazy seq. This function is part of public api but can not be used directly (you should pass this function as parameter to query function).

Required parameters: rs: ResultSet instance.

Optional named parameters: :identifiers -> function that is applied for column name when as-arrays? is false :as-rows? -> by default this function return a lazy seq of records (map), but in certain circumstances you need results as a lazy-seq of vectors. With this keywork parameter you can enable this behavior and return a lazy-seq of vectors instead of records (maps).

Function that wraps result in a lazy seq. This function
is part of public api but can not be used directly (you should pass
this function as parameter to `query` function).

Required parameters:
  rs: ResultSet instance.

Optional named parameters:
  :identifiers -> function that is applied for column name
                  when as-arrays? is false
  :as-rows?    -> by default this function return a lazy seq of
                  records (map), but in certain circumstances you
                  need results as a lazy-seq of vectors. With this keywork
                  parameter you can enable this behavior and return a lazy-seq
                  of vectors instead of records (maps).
raw docstring

result-set->vectorclj

(result-set->vector conn rs options)

Function that evaluates a result into one clojure persistent vector. Accept same parameters as result-set->lazyseq.

Function that evaluates a result into one clojure persistent
vector. Accept same parameters as `result-set->lazyseq`.
raw docstring

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

× close