Mostly an implementation namespace for how PreparedStatement objects
are
created by the next generation java.jdbc library.
set-parameters
is public and may be useful if you have a PreparedStatement
that you wish to reuse and (re)set the parameters on it.
Defines the SettableParameter
protocol for converting Clojure values
to database-specific values.
Mostly an implementation namespace for how `PreparedStatement objects` are created by the next generation java.jdbc library. `set-parameters` is public and may be useful if you have a `PreparedStatement` that you wish to reuse and (re)set the parameters on it. Defines the `SettableParameter` protocol for converting Clojure values to database-specific values.
(create con
sql
params
{:keys [return-keys result-type concurrency cursors fetch-size max-rows
timeout]})
Given a Connection
, a SQL string, some parameters, and some options,
return a PreparedStatement
representing that.
Given a `Connection`, a SQL string, some parameters, and some options, return a `PreparedStatement` representing that.
(set-parameters ps params)
Given a PreparedStatement
and a vector of parameter values, update the
PreparedStatement
with those parameters and return it.
Given a `PreparedStatement` and a vector of parameter values, update the `PreparedStatement` with those parameters and return it.
Protocol for setting SQL parameters in statement objects, which
can convert from Clojure values. The default implementation just
calls .setObject
on the parameter value. It can be extended to
use other methods of PreparedStatement
to convert and set parameter
values. Extension via metadata is supported.
Protocol for setting SQL parameters in statement objects, which can convert from Clojure values. The default implementation just calls `.setObject` on the parameter value. It can be extended to use other methods of `PreparedStatement` to convert and set parameter values. Extension via metadata is supported.
(set-parameter val stmt ix)
Convert a Clojure value into a SQL value and store it as the ix'th parameter in the given SQL statement object.
Convert a Clojure value into a SQL value and store it as the ix'th parameter in the given SQL statement object.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close