(compile)
(compile {:keys [row key] :or {key (unqualified-key)}})
Returns a [[CompiledQueries]] record containing query functions of type
Connection sql-vec => result
. The following functions are compiled:
key | description |
---|---|
:query | returns a vector of results |
:query-one | returns a single results (or nil) |
The function accepts the following options:
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 |
Returns a [[CompiledQueries]] record containing query functions of type `Connection sql-vec => result`. The following functions are compiled: | key | description | | --------------|-------------| | `:query` | returns a vector of results | `:query-one` | returns a single results (or nil) The function accepts the following options: | 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
(query connection sqlvec)
(query connection sqlvec opts)
Creates and executes a compiled query, accepting the following options:
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 |
Creates and executes a compiled query, accepting the following options: | 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
(query-one connection sqlvec)
(query-one connection sqlvec opts)
Creates and executes a compiled query-one, accepting the following options:
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 |
Creates and executes a compiled query-one, accepting the following options: | 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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close