Skip to content

Commit 21512f8

Browse files
committed
Prep for 0.7.12 with metadata-extensible protocols
1 parent 7c2cda1 commit 21512f8

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Changes in 0.7.12
2+
3+
* Make the protocols `ISQLValue`, `ISQLParameter`, and `IResultSetReadColumn` extensible via metadata.
4+
15
Changes in 0.7.11
26

37
* Address edge case in transaction rollback failure [JDBC-179](https://clojure.atlassian.net/browse/JDBC-179).

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@ Support
2626
Releases and Dependency Information
2727
========================================
2828

29-
Latest stable release: 0.7.11 -- requires Clojure 1.7 or later!
29+
Latest stable release: 0.7.12 -- requires Clojure 1.7 or later!
3030

3131
* [All Released Versions](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.clojure%22%20AND%20a%3A%22java.jdbc%22)
3232

3333
* [Development Snapshot Versions](https://oss.sonatype.org/index.html#nexus-search;gav~org.clojure~java.jdbc~~~)
3434

3535
[CLI/`deps.edn`](https://clojure.org/reference/deps_and_cli) dependency information:
3636
```clojure
37-
org.clojure/java.jdbc {:mvn/version "0.7.11"}
37+
org.clojure/java.jdbc {:mvn/version "0.7.12"}
3838
```
3939
[Leiningen](https://github.com/technomancy/leiningen) dependency information:
4040
```clojure
41-
[org.clojure/java.jdbc "0.7.11"]
41+
[org.clojure/java.jdbc "0.7.12"]
4242
```
4343
[Maven](http://maven.apache.org/) dependency information:
4444
```xml
4545
<dependency>
4646
<groupId>org.clojure</groupId>
4747
<artifactId>java.jdbc</artifactId>
48-
<version>0.7.11</version>
48+
<version>0.7.12</version>
4949
</dependency>
5050
```
5151
_Note: Earlier versions of Clojure are supported by older versions of `clojure.java.jdbc`: e.g., version 0.6.1 supports Clojure 1.4 and later._
@@ -144,6 +144,9 @@ Developer Information
144144
Change Log
145145
====================
146146

147+
* Release 0.7.12 on 2021-02-01
148+
* Make the protocols `ISQLValue`, `ISQLParameter`, and `IResultSetReadColumn` extensible via metadata.
149+
147150
* Release 0.7.11 on 2019-12-24
148151
* Address edge case in transaction rollback failure [JDBC-179](https://clojure.atlassian.net/browse/JDBC-179).
149152

src/main/clojure/clojure/java/jdbc.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html"}
454454
(vswap! seen assoc input 2)
455455
(xf result input)))))))
456456

457-
(defprotocol ISQLValue
457+
(defprotocol ISQLValue :extend-via-metadata true
458458
"Protocol for creating SQL values from Clojure values. Default
459459
implementations (for Object and nil) just return the argument,
460460
but it can be extended to provide custom behavior to support
@@ -468,7 +468,7 @@ http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html"}
468468
nil
469469
(sql-value [_] nil))
470470

471-
(defprotocol ISQLParameter
471+
(defprotocol ISQLParameter :extend-via-metadata true
472472
"Protocol for setting SQL parameters in statement objects, which
473473
can convert from Clojure values. The default implementation just
474474
delegates the conversion to ISQLValue's sql-value conversion and
@@ -495,7 +495,7 @@ http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html"}
495495
(set-parameter (first values) stmt ix)
496496
(recur (inc ix) (rest values)))))
497497

498-
(defprotocol IResultSetReadColumn
498+
(defprotocol IResultSetReadColumn :extend-via-metadata true
499499
"Protocol for reading objects from the java.sql.ResultSet. Default
500500
implementations (for Object and nil) return the argument, and the
501501
Boolean implementation ensures a canonicalized true/false value,

0 commit comments

Comments
 (0)