Implicit extension methods for Mongo's Collection object.
Implicit extension methods for Mongo's Collection object. Capable of returning a Scala optimized wrapper object.
A DBCollection
object to wrap
Implicit extension methods for Mongo's connection object.
Implicit extension methods for Mongo's connection object. Capable of returning a Scala optimized wrapper object.
A Mongo
object to wrap
Implicit extension methods for Mongo's DBCursor object.
Implicit extension methods for Mongo's DBCursor object. Capable of returning a Scala optimized wrapper object.
A DBCursor
object to wrap
Implicit extension methods for Mongo's DB object.
Implicit extension methods for Mongo's DB object. Capable of returning a Scala optimized wrapper object.
A DB
object to wrap
Implicits
object to expose implicit conversions to implementing classes which facilitate more Scala-like functionality in Mongo.For classes of
Mongo
(The connection class),DB
,DBCollection
, andDBCursor
, extension methods of asScala are added which will, when invoked, return a Scala-ified wrapper class to replace the Java-driver class it was called on.These scala-ified wrappers do conversions to/from Java datatypes where necessary and will always return Scala types.
Additionally, Collection and Cursors can be called with
asScalaTyped
and a type (either an implicit or explicitly passedManifest
object is used to determine type) to return a Type optimized version of themselves. The type must be a subclass of DBObject, and it is up to YOU the programmer to determine that your underlying collection can be deserialized to objects of type A.Type oriented Collections and Cursors will ALWAYS try to deserialize DBObjects to their type where appropriate (exceptions are things like group and mapReduce which return non-standard data and will be DBObjects)