This commit is contained in:
Sean Corfield 2021-07-26 23:04:38 -07:00
parent 5a5730a71b
commit dbe4737270
2 changed files with 8 additions and 0 deletions

View file

@ -3,6 +3,7 @@
Only accretive/fixative changes will be made from now on.
* 1.2.next in progress
* Address #173 by extending `DatafiableRow` to `ResultSet` so there's a public method to call on (rows of) a JDBC result set directly.
* Address #169 by expanding the description of `with-transaction` in **Getting Started**.
* 1.2.674 -- 2021-06-16

View file

@ -593,6 +593,13 @@
(prefer-method print-method MapifiedResultSet clojure.lang.IPersistentMap)
(extend-protocol
DatafiableRow
ResultSet
(datafiable-row [this connectable opts]
(let [mapped (mapify-result-set this opts)]
(datafiable-row mapped connectable opts))))
(extend-protocol
DatafiableRow
clojure.lang.IObj ; assume we can "navigate" anything that accepts metadata