Liking cljdoc? Tell your friends :D

porsas.async


data-mapperclj

(data-mapper)
(data-mapper {:keys [row cache] :or {cache (HashMap.)}})

Returns a DataMapper instance from options map:

keydescription
:rowOptional function of tuple->value or a [[RowCompiler]] to convert rows into values
:cacheOptional [[java.util.Map]] instance to hold the compiled rowmappers
Returns a [[DataMapper]] instance from options map:

| key           | description |
| --------------|-------------|
| `:row`        | Optional function of `tuple->value` or a [[RowCompiler]] to convert rows into values
| `:cache`      | Optional [[java.util.Map]] instance to hold the compiled rowmappers
raw docstring

DataMappercljprotocol

cacheclj

(cache this)

queryclj

(query this pool sqlvec respond raise)

query-oneclj

(query-one this pool sqlvec respond raise)

poolclj

(pool {:keys [uri database host port user password size]})

rs->compiled-recordclj

(rs->compiled-record)
(rs->compiled-record opts)

rs->mapclj

(rs->map)
(rs->map opts)

rs->recordclj

(rs->record record)
(rs->record record opts)

SQLParamscljprotocol

-get-parametersclj

(-get-parameters this)

-get-sqlclj

(-get-sql this)

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

× close