diff --git a/doc/result-set-builders.md b/doc/result-set-builders.md index c08999d..cffc5e6 100644 --- a/doc/result-set-builders.md +++ b/doc/result-set-builders.md @@ -100,14 +100,14 @@ The default implementation of this protocol is for these two functions to return ```clojure (extend-protocol rs/ReadableColumn java.sql.Date - (read-column-by-label ^java.time.LocalDate [^java.sql.Date v _] + (read-column-by-label [^java.sql.Date v _] (.toLocalDate v)) - (read-column-by-index ^java.time.LocalDate [^java.sql.Date v _2 _3] + (read-column-by-index [^java.sql.Date v _2 _3] (.toLocalDate v)) java.sql.Timestamp - (read-column-by-label ^java.time.Instant [^java.sql.Timestamp v _] + (read-column-by-label [^java.sql.Timestamp v _] (.toInstant v)) - (read-column-by-index ^java.time.Instant [^java.sql.Timestamp v _2 _3] + (read-column-by-index [^java.sql.Timestamp v _2 _3] (.toInstant v))) ``` diff --git a/doc/tips-and-tricks.md b/doc/tips-and-tricks.md index 7b248e6..c2a56e5 100644 --- a/doc/tips-and-tricks.md +++ b/doc/tips-and-tricks.md @@ -9,9 +9,9 @@ Columns declared with the `CLOB` or `BLOB` SQL types are typically rendered into ```clojure (extend-protocol rs/ReadableColumn java.sql.Clob - (read-column-by-label ^String [^java.sql.Clob v _] + (read-column-by-label [^java.sql.Clob v _] (with-open [rdr (.getCharacterStream v)] (slurp rdr))) - (read-column-by-index ^String [^java.sql.Clob v _2 _3] + (read-column-by-index [^java.sql.Clob v _2 _3] (with-open [rdr (.getCharacterStream v)] (slurp rdr)))) ``` @@ -20,9 +20,9 @@ There is a helper in `next.jdbc.result-set` to make this easier -- `clob->string ```clojure (extend-protocol rs/ReadableColumn java.sql.Clob - (read-column-by-label ^String [^java.sql.Clob v _] + (read-column-by-label [^java.sql.Clob v _] (clob->string v)) - (read-column-by-index ^String [^java.sql.Clob v _2 _3] + (read-column-by-index [^java.sql.Clob v _2 _3] (clob->string v))) ```