(data-mapper)
(data-mapper {:keys [row key cache]
:or {key (unqualified-key) cache (java.util.HashMap.)}})
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 |
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
(query this connection sqlvec)
(query-one this connection sqlvec)
(rs->compiled-record)
(rs->compiled-record {:keys [start] :or {start 1}})
(-get-parameter-iterator this)
(-get-sql this)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |