This commit is contained in:
Sean Corfield 2019-01-10 13:15:40 -08:00
parent fc1ca82e4e
commit 5cb185f16e

View file

@ -2,8 +2,7 @@
(ns next.jdbc (ns next.jdbc
"" ""
(:require [clojure.set :as set] (:require [clojure.set :as set])
[clojure.string :as str])
(:import (java.lang AutoCloseable) (:import (java.lang AutoCloseable)
(java.sql Connection DriverManager (java.sql Connection DriverManager
PreparedStatement PreparedStatement
@ -297,11 +296,11 @@
Connection Connection
(get-connection [this] (reify (get-connection [this] (reify
AutoCloseable AutoCloseable
(close [this']) (close [_])
Connectable Connectable
(get-connection [this'] this') (get-connection [_] this)
Preparable Preparable
(prepare [this' sql-params opts] (prepare [_ sql-params opts]
(prepare this sql-params opts)))) (prepare this sql-params opts))))
DataSource DataSource
(get-connection [this] (.getConnection this)) (get-connection [this] (.getConnection this))