Options are query wrappers, they are also queries
Options are query wrappers, they are also queries
(camel-case s)(def-query-option option-name arg & {:syms [key value-of transform assert-arg]})Define an option with option-name (must be a keyword), an argument.
When define an option, implicit binding this and query can be used.
An option can have optional methods:
key the key of resultvalue-of the value of the result, binding m means the data source.transform transforming target with m sourceassert-args asserts if argument provided is legalDefine an option with option-name (must be a keyword), an argument. When define an option, implicit binding `this` and `query` can be used. An option can have optional methods: - `key` the key of result - `value-of` the value of the result, binding `m` means the data source. - `transform` transforming `target` with `m` source - `assert-args` asserts if argument provided is legal
(pattern-error msg arg)(value-error msg v)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 |