RE: How can I do something like (= (class ds) next.jdbc.connection)??

2019-10-22 Thread Sean Corfield
lly alive." -- Margaret Atwood From: Laws Sent: Tuesday, October 22, 2019 3:17 PM To: Clojure Subject: Re: How can I do something like (= (class ds) next.jdbc.connection)?? > The ds binding that you have will satisfy this check (instance? > javax.sql.DataSource ds) --  > because i

Re: How can I do something like (= (class ds) next.jdbc.connection) ??

2019-10-22 Thread Laws
> The ds binding that you have will satisfy this check (instance? javax.sql.DataSource ds) -- > because it is an instance of that Java interface. My experience so far has been a lot of this stuff seems like commonsense to those programmers who have a background with Java, but those of us who l

Re: How can I do something like (= (class ds) next.jdbc.connection) ??

2019-10-17 Thread Sean Corfield
You should :require the namespaces, not try to :import things. (ns your.namespace (:require [next.jdbc :as jdbc])) I suggest you start off by working through https://cljdoc.org/d/seancorfield/next.jdbc/1.0.9/doc/getting-started The ds binding that you have will satisfy this check (instance? ja