(apply-in-transforms model {:keys [kv-args] :as args})
(apply-row-transform instance k xform)
(in-transforms model)
(out-transforms model)
(row-transform-fn transforms)
(transform-insert-rows [first-row :as rows] transforms)
(transform-kv-args kv-args transforms)
(transform-pk pk-vals model transforms)
(transform-result-rows-transducer model)
Return a transducer to transform rows of model
using its out-transforms
.
Return a transducer to transform rows of `model` using its [[out-transforms]].
(transforms model)
Return a map of
{column-name {:in <fn>, :out <fn>}}
For a given model
, all matching transforms are combined with merge-with merge
in an indeterminate order, so don't
try to specify multiple transforms for the same column in the same direction for a given model -- compose your
transform functions instead if you want to do that. See toucan2.tools.helpers/deftransforms
for more info.
Return a map of {column-name {:in <fn>, :out <fn>}} For a given `model`, all matching transforms are combined with `merge-with merge` in an indeterminate order, so don't try to specify multiple transforms for the same column in the same direction for a given model -- compose your transform functions instead if you want to do that. See [[toucan2.tools.helpers/deftransforms]] for more info.
(wrapped-transforms model direction)
Get the transforms
functions for a model in a either the :in
or :out
direction; wrap the functions in
try-catch
forms so we can meaningful error messages if they fail.
Get the [[transforms]] functions for a model in a either the `:in` or `:out` direction; wrap the functions in `try-catch` forms so we can meaningful error messages if they fail.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close