Pure translation: a verb-and-backend request becomes an executable plan.
Nothing here performs an effect or names a transport. Every backend difference is read out of the profile, so a new backend needs no change in this namespace.
Pure translation: a verb-and-backend request becomes an executable plan. Nothing here performs an effect or names a transport. Every backend difference is read out of the profile, so a new backend needs no change in this namespace.
(cl-string src)SRC as a Common Lisp string literal: wrapped in double quotes, with backslashes and double quotes escaped.
SRC as a Common Lisp string literal: wrapped in double quotes, with backslashes and double quotes escaped.
(lang-wrapper prof lang verb)The wrapper PROFILE declares for LANG, or nil. Only :eval is wrapped; every other verb takes its source uninterpreted.
The wrapper PROFILE declares for LANG, or nil. Only :eval is wrapped; every other verb takes its source uninterpreted.
(plan {:req/keys [verb backend params lang timeout-ms] :or {params {}}})REQUEST translated against its backend's profile.
Returns a Result: ok wraps a schema/Plan, err carries a schema/Failure. The plan's :plan/prelude lists modules the boundary must ensure are loaded before the call is issued.
REQUEST translated against its backend's profile. Returns a Result: ok wraps a schema/Plan, err carries a schema/Failure. The plan's :plan/prelude lists modules the boundary must ensure are loaded before the call is issued.
(resolve-args op params)OP's positional arguments drawn from PARAMS, falling back to :op/defaults.
Returns [:ok args] or [:missing key]. A default of nil counts as supplied —
presence is decided by contains?, so an op may legitimately default an
argument to nil.
OP's positional arguments drawn from PARAMS, falling back to :op/defaults. Returns [:ok args] or [:missing key]. A default of nil counts as supplied — presence is decided by `contains?`, so an op may legitimately default an argument to nil.
(timeout-for prof op requested)The timeout in force: the request's, else the op's, else the profile's.
The timeout in force: the request's, else the op's, else the profile's.
(wrap-source wrapper src)SRC rendered through WRAPPER's template, or SRC unchanged when WRAPPER is nil. The template receives SRC as a Common Lisp string literal.
SRC rendered through WRAPPER's template, or SRC unchanged when WRAPPER is nil. The template receives SRC as a Common Lisp string literal.
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 |