implicit.ly

Scala software, hot off the presses

casbah 2.1.5.0

Casbah 2.1.5.0 / 2011-05-26

  • Added support for Scala 2.9.0-1 ... As this is a critical fix release against 2.9.0.final, 2.9.0.final is not supported. (Note that SBT, etc requires the artifact specified as 2.9.0-1, not 2.9.0.1)
  • Apart from BugFixes this will be the last Casbah release which supports Scala 2.8.0; all future releases will require Scala 2.8.1+ (See 2.8.0 EOL Announcement)
  • [2.9.0 only] Adjusted dynamic settings to build against 2.9.0-1 and Casbah 2.1.5.0
  • [2.9.0 only] Prototype "Dynamic" module (You must enable Scala's support for Dynamic)
  • [2.9.0 only] I seem to have missed project files for SBT and casbah-dynamic
  • [2.9.0 only] Tweaks and adjustments to get this building and testing solidly on 2.9.0-1
  • Disabled a few tests that weren't passing and known to be 'buggy' in specs1. These are fixed for the upcoming 2.2. release on specs2; they are test bugs rather than Casbah bugs.
  • RegEx $not was just flat out wrong - was producing {"foo": {"foo": //}} instead of {"foo": {"$not": {//}}
  • Added a getAsOrElse method

Casbah is the official Scala driver for MongoDB. It provides Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to). A tutorial and setup instructions are available.

Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.1.2

Casbah 2.1.2 / 2011-04-09

  • SCALA-28 Updated Java Driver to Release 2.5.3

    • JAVA-315 several exception cases do not put back the dbport in pool, resulting in forever hanging pool to that server
    • JAVA-312 Added UUID support to JSON Serialization
    • JAVA-318 Fixed JMX issues for similar ServerAddresses
  • SCALA-27 Properly Serialize Option[T] so that None is null and Some expands out
  • SCALA-26: findOneByID(id) and findOneById(id, fields) had different casing; when findOneById(id, fields) was called as byID an implicit caused the single arg version to be called instead, yielding unexpected results.

Casbah is the official Scala driver for MongoDB. It provides Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to). A tutorial and setup instructions are available.

Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   Scala 2.9.0.RC1   casbah   com.mongodb.casbah  

casbah 2.1.1

Casbah 2.1.1 / 2011-03-29

  • SCALA-25 Added support for $bit operator, with and and or options
  • Updated to Java Driver 2.5.2 (Bugfixes)

    • JAVA-301 - Replicaset w/ auth warnings too verbose when not authd against local/admin db
    • JAVA-304 - Problem with closing cursors - killCursors

Casbah is the official Scala driver for MongoDB. It provides Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to). A tutorial and setup instructions are available.

Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.1.0

Casbah 2.1.0 / 2011-03-15

  • SCALA-22 Added a dropTarget boolean option to rename collection, which specifies behavior if named target collection already exists, proxies JAVA-238
  • Removed resetIndexCache, which has also been removed from the Java Driver
  • SCALA-21 Added "set metadata" method to match Java Driver (See Java-261)
  • SCALA-20 Updated to Java Driver 2.5

  • SCALA-21 - Update GridFS to use DBObject views. Holding back full bugfix until we have a 2.5 build to link against
  • Example adjustments to filter by start time and namespace
  • SCALA-10 - And this is why we unit test. Size was returning empty for cursor based results as it wasn't pulling the right value. Fixed, calling cursor.size.
  • Added an alternative object construction method for MongoDBObject with a list of pairs, rather than varargs [philwills]
  • Making scaladoc for MongoURI more explicit. Note that the wiki markup for lists isn't actually implemented in scaladoc yet. [philwills]
  • Refactor Collection and Cursors using Abstract types, explicit 'DBObject' version is always returned from DB, Collection etc now. Those wanting to use typed versions must code the flip around by hand. !!! BREAKING CHANGE, SEE CODE / EXAMPLES
  • SCALA-10 Updated MapReduce interfaces to finish 1.8 compatibility

    • Renamed MapReduceError to MapReduceException; MapReduceError is a non exception which represents a failed job
    • Changed MapReduceResult to automatically proxy 'results' in inline result sets
  • Added missing methods to GridFSDBFile necessary to access the underlying datastream
  • Fixed setter/getter of option on cursor
  • For several reasons changed backing trait of DBList PML from Buffer to LinearSeq
  • Moved to new MapReduce functionality based on MongoDB 1.7.4+ !!! You must now specify an output mode.

  • MapReduce failures shouldn't throw Error which can crash the runtime
  • New MapReduceSpec updates to include tests against new MongoDB MapReduce logic

Casbah is the official Scala driver for MongoDB. It provides Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to). A tutorial and setup instructions are available.

Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0.3

Casbah 2.0.3 / 2011-01-30

  • Added missing methods to GridFSDBFile necessary to access the underlying datastream

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0.2

Casbah 2.0.2 / 2011-01-25

  • Fixed the MongoDBOBject 'as' operator to return the proper type, instead of Any. (philwills)

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0.1

Casbah 2.0.1 / 2011-01-04

  • SCALA-16: Added a few additional validation tests against getAs and as on MongoDBObject
  • SCALA-17 - Fixed syntax of $within and its nested operators, unit test passes

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0

Casbah 2.0 / 2011-01-03

Notable Changes since Casbah 1.0.8.1:

  • Ownership Change: Casbah is now an officially supported MongoDB Driver

  • Casbah is now broken into several submodules - see http://api.mongodb.org/scala/casbah/migrating.html
  • Casbah releases are now published to http://scala-tools.org
  • SBT Build now publishes -sources and -javadoc artifacts
  • Added heavy test coverage
  • ++ additivity operator on MongoDBObject for lists of tuple pairs
  • Updates to Java Driver wrappings

    • Casbah now wraps Java Driver 2.4 and fully supports all options & interfaces including Replica Set and Write Concern support
    • added a WriteConcern helper object for Scala users w/ named & default args
    • added findAndModify / findAndRemove
  • Stripped out support for implicit Product/Tuple conversions as they're buggy and constantly interfere with other code.
  • Migrated Conversions code from core to commons, repackaging as com.mongodb.casbah.commons.conversions

    • Moved loading of ConversionHelpers from Connection creation to instantiation of Commons' Implicits (This means conversions are ALWAYS loaded now for everyone)
  • Switched off of configgy to slf4j as akka did

    Added SLF4J-JCL Bindings as a +test dependency (so we can print logging while testing without forcing you to use an slf4j implementation yourself)

    • Moved Logger from core to commons
  • Massive improvements to Query DSL:

    • Added new implementations of $in, $nin, $all and $mod with tests. $mod now accepts non-Int numerics and aof two differing types.
    • Full test coverage on DSL (and heavy coverage on other modules)
    • Migrated $each to a now functioning internal hook on $addToSet only exposed in certain circumstances
    • Various cleanups to Type constraints in Query DSL
    • Full support for all documented MongoDB query operators
    • Added new $not syntax, along with identical support for nested queries in $pull
    • Valid Date and Numeric Type boundaries introduced and used instead of Numeric (since Char doesn't actually workwith Mongo and you can't double up type bounds)
    • Added full support for geospatial query.
    • Resolved an issue where the $or wasn't being broken into individual documents as expected.
    • DSL Operators now return DBObjects rather than Product/Tuple (massive fixes to compatibility and performance result)
    • Added @see linkage to each core operator's doc page
  • GridFS Changes:

    • GridFS' `files' now returned a MongoCursor not a raw Java DBCursor
    • GridFS findOne now returns an Option[_] and detects nulls like Collection
  • Added "safely" resource loaning methods on Collection & DB

    • Given an operation, uses write concern / durability on a single connection and throws an exception if anything goes wrong.
  • Culled casbah-mapper. Mapper now lives as an independent project at http://github.com/maxaf/casbah-mapper
  • Bumped version of scala-time to the 0.2 release
  • Added DBList support via MongoDBList, following 2.8 collections
  • Adjusted boundaries on getAs and expand; the view-permitting Any was causing ambiguity issues at runtime with non AnyRefs (e.g. AnyVal).
  • Fixed an assumption in expand which could cause runtime failure
  • Updated MongoDBObject factory & builder to explicitly return a type; some pieces were assuming at runtime that it was a MongoDBObjectBuilder$anon1 which was FUBAR

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0rc3

2.0rc3 / 2010-12-30

  • Migrated MongoCursorBase[T] chained methods to use this.type which returns their proper SUBTYPE instead of undifferentiated superclass MongoCursorBase[T]
  • Moved copy() method to properly return the given subtype in MongoCursor/MongoTypedCursor
  • Replaced explicit asInstanceOf[DBObject] casts of view findOne values to compiler-checked ': DBObject' type annotation

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah  

casbah 2.0rc2

2.0rc2 / 2010-12-29

  • Minor adjustment to @philwills' patch so that any VIEW of a DBObject can be taken into ++
  • Added a ++ method which explicitly takes and returns a MongoDBObject to avoid odd MongoDBObject ++ MongoDBObject == Map behaviour (@philwills)
  • Updated doc build including single Scaladoc buildout

Casbah is the Scala toolkit for MongoDB, providing Scala wrappers to the Java driver, a DSL query syntax and full Scala type support (MongoDB will never give you a Java type from Casbah unless you asked it to).
Casbah wraps the official MongoDB Java Driver and provides the functionality and tools that Scala developers expect without reinventing the wheel uneccessarily. The current (latest) version has been tested against MongoDB 1.6.x with Java driver 2.3.
If you previously used Casbah 1.x, the package has changed from com.novus.mongodb.casbah to com.mongodb.casbah, and ownership has moved to the MongoDB project. New documentation for the 2.x series is forthcoming but core functionality remains mostly the same from 1.x (From a user standpoint).

This work is an Open Source project under the Apache License v2.

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

Filed under  //   Scala 2.8.0   Scala 2.8.1   casbah   com.mongodb.casbah