Initializes a MongoDB client using a URL.
The URL must be in the form documented at http://www.mongodb.org/display/DOCS/Connections which is:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]]/[database][?options]
An exception if the URL cannot be parsed as a valid MongoDB URL.
See Implementation
Initializes a MongoDB client using a URL.
The URL must be in the form documented at http://www.mongodb.org/display/DOCS/Connections which is:
mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]]/[database][?options]