(->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.
(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.
(convert-values types row)
Convert the values in a row to the appropriate types.
Convert the values in a row to the appropriate types.
(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.
(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).
(prep-connection connection)
Prepare a connection for use in a query.
Prepare a connection for use in a query.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close