clojure.jdbc
clojure.jdbc copied to clipboard
JDBC library for Clojure
Would be great to have a file like ``` ;; clojure.java-time (:require [java-time] [jdbc.proto :refer [ISQLType ISQLResultSetReadColumn]]) ; java.time.LocalDate - java.sql.Date ; java.time.LocalDateTime - java.sql.Timestamp ; java.time.LocalTime - java.sql.Time (extend-protocol...
Fixes #44. Note that this is a breaking change, because I also fixed the typo in the `:result-concurrency` option's name.
Using clojure.jdbc w/ Hikari CP and Postgresql 11. When attempting to create a cursor as described in the docs the process still ends up trying to load the whole result...
[funcool/clojure.jdbc "0.9.0"] There are some reflection warnings reported: ``` Reflection warning, jdbc/types.clj:43:19 - reference to field getConnection on java.lang.Object can't be resolved. Reflection warning, jdbc/types.clj:47:5 - reference to field close...
The official guide could be enhanced with some mentions of `:identifiers` and `:as-rows?`. Specifically, I recall I spent some time before I figured out how to "kebab-case-keyword"-ize the fetched results...
jdbcUrl format `jdbc:subprotocol:subname`
javax.sql.DataSource implements the proto/IConnection protocol, but it's difficult to see how directly using it like that is anything but a misfeature. This protocol implementation lets you do the following: `(jdbc/fetch...
e.g. user=> (with-open [conn (jdbc/connection "derby:/path/to/db;user=dot;password=D^1@?pw*qwK")] (jdbc/execute conn "insert into foo values ('hello')")) URISyntaxException Illegal character in path at index 37: derby:/path/to/db;user=dot;password=D^9@?pw*qwK java.net.URI$Parser.fail (URI.java:2848) user=> (with-open [conn (jdbc/connection "derby:memory:derby2pg;create=true")] "create...