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 next.jdbc.connection")
(println "fail, it is not next.jdbc.connection"))
I get errors such as:
java.lang.ClassNotFoundException: seancorfield/next.jdbc.Connection,
compiling:(core.clj:1:1)
The namespace is here:
https://github.com/seancorfield/next-jdbc/blob/master/src/next/jdbc/connection.clj
(:import
[seancorfield/next.jdbc Connection]
)
(:import
[next.jdbc Connection]
)
(:import
[next.jdbc.connection]
)
What is the correct way to do this?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/clojure/8a486bd5-bb5f-41ef-bcb6-74e49ed58db4%40googlegroups.com.