Liking cljdoc? Tell your friends :D

collet.actions.jdbc


->batch-resultclj

(->batch-result batch-size prefix-table?)

->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

execute-params-specclj


execute-statementclj

(execute-statement {:keys [connection statement options prefix-table? timeout]
                    :or {options {} prefix-table? true}})

Execute a query and return the result set as a sequence of maps.

Execute a query and return the result set as a sequence of maps.
raw docstring

expand-datasetsclj

(expand-datasets query-map)

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 5000
                  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

PRecordHandlercljprotocol

appendclj

(append this record)

flush-batchclj

(flush-batch this batch)

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


record->mapclj

(record->map record)

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

× close