michaelklishin/monger — Issue #4: Multiple connections
Author: tobyhede
Created: 2012-01-27 11:33:22+00:00
State: open

Is it possible to have multiple connections open at the same time?

The convention seems to be setting the connection with "monger.core/connect!"

Is there something needed to specify a connection? I found with-connection:

(core/with-connection conn
(collection/insert "people" { :first_name "John" :last_name "Lennon" }))

But when attempting to use it see an error:

actual: java.lang.ClassCastException: clojure.lang.Var$Unbound cannot be cast to com.mongodb.DB