alexanderjarvis/play-jongo — pull request #3 by SteveNewson (2012-08-21 15:24:14+00:00)
Title: Enable developer to provide a URI rather than a host/port/db configuration combination.

I wanted to be able to connect to a remote MongoDB which has authentication switched on (MongoLab for example). Rather than providing a split host/port/db, I've replaced the implementation with a URI which is passed to Mongo instead.

I've maintained the "in test mode, connect to a DB called 'test'" behaviour even though I think this may be a bad approach. Perhaps there should be a different database for test, or perhaps it should always default to "localhost/test".

Clearly my tab/space switching is controversial in that everyone has a preference, however, I wanted to make it clear that the indents were aligned correctly. Can't confirm that in my local Eclipse and that was a tad annoying.