Remove bogus type hints

Not sure how/why these ended up in the docs but they are wrong/not 
needed.
This commit is contained in:
Sean Corfield 2020-04-07 13:45:22 -07:00
parent 2574e7e37f
commit 74ce12c5c0
2 changed files with 8 additions and 8 deletions

View file

@ -100,14 +100,14 @@ The default implementation of this protocol is for these two functions to return
```clojure ```clojure
(extend-protocol rs/ReadableColumn (extend-protocol rs/ReadableColumn
java.sql.Date java.sql.Date
(read-column-by-label ^java.time.LocalDate [^java.sql.Date v _] (read-column-by-label [^java.sql.Date v _]
(.toLocalDate 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)) (.toLocalDate v))
java.sql.Timestamp java.sql.Timestamp
(read-column-by-label ^java.time.Instant [^java.sql.Timestamp v _] (read-column-by-label [^java.sql.Timestamp v _]
(.toInstant 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))) (.toInstant v)))
``` ```

View file

@ -9,9 +9,9 @@ Columns declared with the `CLOB` or `BLOB` SQL types are typically rendered into
```clojure ```clojure
(extend-protocol rs/ReadableColumn (extend-protocol rs/ReadableColumn
java.sql.Clob 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))) (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)))) (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 ```clojure
(extend-protocol rs/ReadableColumn (extend-protocol rs/ReadableColumn
java.sql.Clob java.sql.Clob
(read-column-by-label ^String [^java.sql.Clob v _] (read-column-by-label [^java.sql.Clob v _]
(clob->string 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))) (clob->string v)))
``` ```