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
> 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
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
If I do this:
(class ds)
I see:
next.jdbc.connection$url_PLUS_etc$reify__555
Is there anyway I can match against this? I'd like a runtime check to know
that the code really does have a database connection. Imagine code like
this:
(if (= next.jdbc.connection (class ds))
(println "its n