read-column-thunk
method, which is used to determine how to read values of columns in results, and default
implementations
[[read-column-thunk]] method, which is used to determine how to read values of columns in results, and default implementations
(get-object-of-class-thunk rset i klass)
Return a thunk that will be used to fetch values at column index i
from ResultSet rset
as a given class. Calling
this thunk is equivalent to
(.getObject rset i klass)
but includes extra logging.
Return a thunk that will be used to fetch values at column index `i` from ResultSet `rset` as a given class. Calling this thunk is equivalent to ```clj (.getObject rset i klass) ``` but includes extra logging.
(read-column-thunk conn₁ model₂ rset rsmeta₍₃₎ i)
Return a zero-arg function that, when called, will fetch the value of the column from the current row.
read-column-thunk is defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:33).
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.read
(toucan2/jdbc/read.clj:46)
[:default :default 2005]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:84)
[:default :default 93]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:93)
[:default :default 2014]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:97)
[:default :default 91]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:101)
[:default :default 92]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:105)
[:default :default 2013]
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:109)
These aux methods are known:
:after
methods:
:default
, defined in toucan2.jdbc.read
(toucan2/jdbc/read.clj:53)Return a zero-arg function that, when called, will fetch the value of the column from the current row. read-column-thunk is defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:33). 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.read]] (toucan2/jdbc/read.clj:46) * `[:default :default 2005]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:84) * `[:default :default 93]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:93) * `[:default :default 2014]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:97) * `[:default :default 91]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:101) * `[:default :default 92]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:105) * `[:default :default 2013]`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:109) These aux methods are known: `:after` methods: * `:default`, defined in [[toucan2.jdbc.read]] (toucan2/jdbc/read.clj:53)
(read-column-thunk-primary-method-pg-connection-class-default-Types-TIMESTAMP
next-method
_conn
_model
rset
rsmeta
i)
(type-name i)
(type-name i not-found)
Map of java.sql.Types
enum integers (e.g. java.sql.Types/FLOAT
, whose value is 6
) to the string type name e.g.
FLOAT
.
(type-name java.sql.Types/FLOAT) -> (type-name 6) -> "FLOAT"
Map of `java.sql.Types` enum integers (e.g. `java.sql.Types/FLOAT`, whose value is `6`) to the string type name e.g. `FLOAT`. ```clj (type-name java.sql.Types/FLOAT) -> (type-name 6) -> "FLOAT" ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close