Liking cljdoc? Tell your friends :D

nd-db.csv


col-str->key-vecclj

(col-str->key-vec col-split-pattern col-str)

Converts a CSV key column string to a vector of keywords. Trims and lower-cases before converting to keyword.

Converts a CSV key column string to a vector of keywords.
Trims and lower-cases before converting to keyword.
sourceraw docstring

csv-row->dataclj

(csv-row->data &
               {:keys [cols col-separator col-parser]
                :or {col-parser default-col-parser}})

Closes over the header, returning a function that takes a row and returns a resulting map with keyword keys from header.

optional param :col-parser is a function that is used to parse individual columns - defaults to default-col-parser.

Closes over the header, returning a function that takes a row and
returns a resulting map with keyword keys from header.

optional param :col-parser is a function that is used to parse
individual columns - defaults to default-col-parser.
sourceraw docstring

data->csv-rowclj

(data->csv-row &
               {:keys [cols col-separator col-emitter]
                :or {col-emitter default-col-emitter}})

Closes over the header, returning a function that transforms data to a CSV row with data in same order as the header.

optional param :col-emitter is a function that is used to emit individual columns - defaults to default-col-emitter.

Closes over the header, returning a function that transforms data to a CSV
row with data in same order as the header.

optional param :col-emitter is a function that is used to emit
individual columns - defaults to default-col-emitter.
sourceraw docstring

default-col-emitterclj

source

default-col-parserclj

(default-col-parser col-str)
source

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

× close