Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Minor feature - support for MongoConnection.connect(DBAddress)

  returning MongoDB (matches Mongo driver's static .connect)
  • Loading branch information...
commit 42c48d3d378cfc0a617dda42f1306ed5bea76727 1 parent 1615d8c
@bwmcadams bwmcadams authored
View
2  project/build.properties
@@ -3,7 +3,7 @@
project.organization=com.novus
project.name=casbah
sbt.version=0.7.4
-project.version=1.0.5
+project.version=1.0.6
def.scala.version=2.7.7
build.scala.versions=2.8.0
project.initialize=false
View
1  src/main/scala/mongodb/MongoConnection.scala
@@ -38,6 +38,7 @@ import Implicits._
object MongoConnection {
def apply() = new MongoConnection(new Mongo())
def apply(addr: DBAddress) = new MongoConnection(new Mongo(addr))
+ def connect(addr: DBAddress) = new MongoDB(Mongo.connect(addr))
def apply(left: DBAddress, right: DBAddress) = new MongoConnection(new Mongo(left, right))
def apply(left: DBAddress, right: DBAddress, options: MongoOptions) = new MongoConnection(new Mongo(left, right, options))
def apply(addr: DBAddress, options: MongoOptions) = new MongoConnection(new Mongo(addr, options))
Please sign in to comment.
Something went wrong with that request. Please try again.