Rename protocols
For internal consistency and also to avoid confusion with `clojure.java.jdbc` protocols.
This commit is contained in:
parent
6d1a42a0a0
commit
be9e4a6a55
2 changed files with 4 additions and 4 deletions
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
(set! *warn-on-reflection* true)
|
||||
|
||||
(defprotocol ISQLParameter :extend-via-metadata true
|
||||
(defprotocol SettableParameter :extend-via-metadata true
|
||||
"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
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
"Convert a Clojure value into a SQL value and store it as the ix'th
|
||||
parameter in the given SQL statement object."))
|
||||
|
||||
(extend-protocol ISQLParameter
|
||||
(extend-protocol SettableParameter
|
||||
Object
|
||||
(set-parameter [v ^PreparedStatement s ^long i]
|
||||
(.setObject s i v))
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
(column-names [this] "Return the column names from a result set.")
|
||||
(row-values [this] "Return the values from the current row of a result set."))
|
||||
|
||||
(defprotocol IReadColumn
|
||||
(defprotocol ReadableColumn
|
||||
"Protocol for reading objects from the java.sql.ResultSet. Default
|
||||
implementations (for Object and nil) return the argument, and the
|
||||
Boolean implementation ensures a canonicalized true/false value,
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
(read-column-by-index [val rsmeta idx]
|
||||
"Function for transforming values after reading them via a column index."))
|
||||
|
||||
(extend-protocol IReadColumn
|
||||
(extend-protocol ReadableColumn
|
||||
Object
|
||||
(read-column-by-label [x _] x)
|
||||
(read-column-by-index [x _2 _3] x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue