aboekhoff/congomongo — pull request #79 by dsosby (2012-07-19 03:47:52+00:00)
Title: Updating make-connection to accept a Mongo URI String

make-connection tests for mongo:// in the db string and uses MongoURI to parse it in place of passing database/host/port/options.

One piece of note is that the URI supports authentication which is normally handled separately in congomongo. I went ahead and did an authenticate call if user/pass were specified so that user/pass did not have to be stored in memory. If this isn't acceptable, perhaps user/pass should be stored in the connection map and authenticate could optionally check for their definition in the (authenticate connection) case.