Liking cljdoc? Tell your friends :D

porsas.core


compileclj

(compile)
(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

GetValuecljprotocol

get-valueclj

(get-value this i)
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 {:keys [start] :or {start 1}})
source

rs->mapclj

(rs->map)
(rs->map {:keys [start] :or {start 1}})
source

rs->recordclj

(rs->record record)
(rs->record record {:keys [start] :or {start 1}})
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