Liking cljdoc? Tell your friends :D

porsas.core


compileclj

(compile {:keys [row key cache]
          :or {key (unqualified-key) cache (java.util.HashMap.)}})

Returns a DataMapper instance from options map:

keydescription
:rowOptional function of rs->value or a RowCompiler to convert rows into values
:keyOptional function of rs-meta i->key to create key for map-results
:cacheOptional [[java.util.Map]] instance to hold the compiled rowmappers
Returns a [[DataMapper]] instance from options map:

| key           | description |
| --------------|-------------|
| `:row`        | Optional function of `rs->value` or a [[RowCompiler]] to convert rows into values
| `:key`        | Optional function of `rs-meta i->key` to create key for map-results
| `:cache`      | Optional [[java.util.Map]] instance to hold the compiled rowmappers
sourceraw docstring

DataMappercljprotocol

cacheclj

(cache this)

queryclj

(query this connection sqlvec)

query-oneclj

(query-one this connection sqlvec)
source

default-mapperclj

source

GetConnectioncljprotocol

get-connectionclj

(get-connection this)
source

qualified-keyclj

(qualified-key)
(qualified-key f)
(qualified-key ft fc)
source

RowCompilercljprotocol

compile-rowclj

(compile-row this cols)
source

rs->compiled-recordclj

(rs->compiled-record)
(rs->compiled-record _)
source

rs->mapclj

(rs->map)
(rs->map _)
source

rs->recordclj

(rs->record record)
source

SQLParamscljprotocol

-get-parameter-iteratorclj

(-get-parameter-iterator this)

-get-sqlclj

(-get-sql this)
source

unqualified-keyclj

(unqualified-key)
(unqualified-key f)
source

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

× close