Liking cljdoc? Tell your friends :D

toucan2.tools.after

Common code shared by various after- methods. Since the after methods operate over instances, we need to upgrade result-type/pks and result-type/update-count queries to result-type/instances, run them with the 'upgraded' result type, run our after stuff on each row, and then return the original results.

Common code shared by various `after-` methods. Since the `after` methods operate over instances, we need to upgrade
`result-type/pks` and `result-type/update-count` queries to `result-type/instances`, run them with the 'upgraded'
result type, run our after stuff on each row, and then return the original results.
raw docstring

define-aftercljmacro

(define-after query-type model [instance-binding] & body)
source

each-row-fnclj

(each-row-fn query-type₁ model₂)

Should return a function with the signature

(f instance)

This function is only done for side-effects for query types that return update counts or PKs.

Should return a function with the signature

```clj
(f instance)
```

This function is only done for side-effects for query types that return update counts or PKs.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close