implicit.ly

Scala software, hot off the presses

« Back to blog

casbah 1.0.8.5

Backport feature release; some features from the 1.1 development branch have been pulled back to 1.0.x.

  • Backported a MongoDBList interface which uses Scala 2.8 collection factory/builder standard to produce com.mongodb.BasicDBList instances; implicit conversion support for additional usefulness. [BWM]
  • Backported safely and batchSafely methods on MongoDB and MongoCollection. These use requestStart/requestDone to run operations within a single thread/connection and then check getLastError (getPrevErrors for "batch"), throwing any exceptions that occurred. If you want to ensure writes this should be used, but they will block.

Formerly known as "mongo-scala-wrappers", Casbah provides a series of wrappers and DSL-like (AKA fluid query syntax) functionality for better utilizing MongoDB from within Scala. This wraps the official MongoDB Java Driver, attempting to provide more Scala-like functionality on top of it. The current (latest) version has been tested against MongoDB 1.4.x, with the 2.0 Java Driver (not all 2.0 driver features are wired in yet, as development began against 1.x). Your Mileage May Vary. See the docs and test classes for information on best practices and functionality.

The latest releases are available from our Maven repository:

http://repo.bumnetworks.com/releases/ # For Releases
http://repo.bumnetworks.com/snapshots/  # For snapshots

This work is open sourced by Novus Partners, Inc. http://novus.com under the Apache License v2.

There is a potentially useful Casbah Tutorial which gives you everything you need to know to be dangerous.

Got questions, problems, suggestions? Please join the Casbah Users' Mailing List