Liking cljdoc? Tell your friends :D

collet.actions.jdbc


->rows-seqclj

(->rows-seq xs mapper cleanup)

Convert a sequence of JSON strings to a lazy sequence of maps. The cleanup function is called when the sequence is exhausted.

Convert a sequence of JSON strings to a lazy sequence of maps.
The cleanup function is called when the sequence is exhausted.
raw docstring

append-row-to-fileclj

(append-row-to-file writer row)

Append a row to a file as a JSON string.

Append a row to a file as a JSON string.
raw docstring

convert-valuesclj

(convert-values types row)

Convert the values in a row to the appropriate types.

Convert the values in a row to the appropriate types.
raw docstring

get-columns-typesclj

(get-columns-types row prefix-table?)

Returns a map of column names and their SQL types.

Returns a map of column names and their SQL types.
raw docstring

make-queryclj

(make-query {:keys [connection query options prefix-table? preserve-types?
                    timeout concurrency result-type cursors fetch-size]
             :or {options {}
                  prefix-table? true
                  preserve-types? false
                  fetch-size 4000
                  concurrency :read-only
                  cursors :close
                  result-type :forward-only}})

Execute a query and write the results to a temporary file. Return a lazy sequence of maps representing the rows in the result set. The query can be a HoneySQL query or a plain SQL string (wrapped in the vector).

Execute a query and write the results to a temporary file.
Return a lazy sequence of maps representing the rows in the result set.
The query can be a HoneySQL query or a plain SQL string (wrapped in the vector).
raw docstring

prep-connectionclj

(prep-connection connection)

Prepare a connection for use in a query.

Prepare a connection for use in a query.
raw docstring

query-params-specclj

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

× close