Liking cljdoc? Tell your friends :D

toucan2.jdbc.result-set

Implementation of a custom next.jdbc result set builder function, builder-fn, and the default implementation; [[reduce-result-set]] which is used to reduce results from JDBC databases.

Implementation of a custom `next.jdbc` result set builder function, [[builder-fn]], and the default
implementation; [[reduce-result-set]] which is used to reduce results from JDBC databases.
raw docstring

builder-fnclj

(builder-fn conn₁ model₂ rset opts)

Return the next.jdbc builder function to use to create the results when querying a model. By default, this uses instance-builder-fn, and returns Toucan 2 instances; but if you want to use plain maps you can use one of the other builder functions that ships with next.jdbc, or write your own custom builder function.

builder-fn is defined in toucan2.jdbc.result-set (toucan2/jdbc/result_set.clj:25).

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 primary methods are known:

Return the `next.jdbc` builder function to use to create the results when querying a model. By default, this
  uses [[instance-builder-fn]], and returns Toucan 2 instances; but if you want to use plain maps you can use one of the
  other builder functions that ships with `next.jdbc`, or write your own custom builder function.

builder-fn is defined in [[toucan2.jdbc.result-set]] (toucan2/jdbc/result_set.clj:25).

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 primary methods are known:

* `:default`, defined in [[toucan2.jdbc.result-set]] (toucan2/jdbc/result_set.clj:120) 
  
  It has the following documentation:
  
  Default `next.jdbc` builder function. Uses [[instance-builder-fn]] to return Toucan 2 instances.
sourceraw docstring

instance-builder-fnclj

(instance-builder-fn model rset opts)

Create a result set map builder function appropriate for passing as the :builder-fn option to next.jdbc that will create toucan2.instances of model using namespaces determined by toucan2.model/table-name->namespace.

Create a result set map builder function appropriate for passing as the `:builder-fn` option to `next.jdbc` that
will create [[toucan2.instance]]s of `model` using namespaces determined
by [[toucan2.model/table-name->namespace]].
sourceraw docstring

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

× close