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.

each-row-fn is defined in toucan2.tools.after (toucan2/tools/after.clj:16).

It caches methods using a methodical.impl.cache.watching.WatchingCache.

It uses the method combination methodical.impl.combo.threaded.ThreadingMethodCombination with the threading strategy :thread-last.

It uses the dispatcher methodical.impl.dispatcher.multi_default.MultiDefaultDispatcher with hierarchy #'clojure.core/global-hierarchy and prefs {}.

The default value is :default.

It uses the method table methodical.impl.method_table.standard.StandardMethodTable.

These aux methods are known:

:after methods:

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.

each-row-fn is defined in [[toucan2.tools.after]] (toucan2/tools/after.clj:16).

It caches methods using a `methodical.impl.cache.watching.WatchingCache`.

It uses the method combination `methodical.impl.combo.threaded.ThreadingMethodCombination`
with the threading strategy `:thread-last`.

It uses the dispatcher `methodical.impl.dispatcher.multi_default.MultiDefaultDispatcher`
with hierarchy `#'clojure.core/global-hierarchy`
and prefs `{}`.

The default value is `:default`.

It uses the method table `methodical.impl.method_table.standard.StandardMethodTable`.

These aux methods are known:

`:after` methods:

* `:default`, defined in [[toucan2.tools.after]] (toucan2/tools/after.clj:29) 
sourceraw docstring

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

× close