5. val driver = new MongoDriver
val connection = driver.
connection(List(“localhost"))
val db = connection.db("db_name")
val collection =
db.collection(“coll_name")
Connecting
13. Streaming
// Iteratee[BSONDocument, Unit]
val process: = Iteratee.foreach { a =>
val name = a[String]("name")
val pretty = BSONDocument.pretty(a)
println(s"got $name of: $pretty")
}