Announcing mgo r2011.07.28

25 views
Skip to first unread message

Gustavo Niemeyer

unread,
Jul 28, 2011, 9:30:24 PM7/28/11
to golan...@googlegroups.com, mongod...@googlegroups.com, mgo-...@googlegroups.com
The r2011.07.28 release of the mgo MongoDB driver for Go is
just leaving the oven, with some fixes and improvements.
Every change in this release was prompted by developers over
the last few weeks, so thanks for your requests, and please
keep them coming.

The project page with details is available at:

http://labix.org/mgo

The following changes were made in this release:

- gobson.Setter interface has been improved significantly to
be more useful in real world scenarios. Now pointer receivers
will work in most circumstances, and the argument provided has
a bson.Raw type. Note that this is an incompatible change, so
if you're using Setter, your application must be tweaked.

More details about the new interface at:

http://goneat.org/lp/gobson#Setter

This change was prompted by a request from Daniel Smith.

- Introduced initial support for the DBRef convention of
database references. This means one can now do something
like this:

session.GetRef(value.Field)

Assuming that value.Field has a mgo.DBRef type. For more
details, check the documentation:

http://goneat.org/lp/mgo#DBRef
http://goneat.org/lp/mgo#Session.GetRef
http://goneat.org/lp/mgo#Database.GetRef

Support for DBRefs was requested by Kim Lundgren.

- Fixed decoding of the obsolete BSON binary encoding format,
as reported and recommended by Benoît Larroque.

- Better introductory documentation in the package doc, as
suggested by Roger Peppe:

http://goneat.org/lp/mgo

Have fun!

--
Gustavo Niemeyer
http://niemeyer.net
http://niemeyer.net/plus
http://niemeyer.net/twitter
http://niemeyer.net/blog

-- I never filed a patent.

Gustavo Niemeyer

unread,
Jul 28, 2011, 10:48:56 PM7/28/11
to golan...@googlegroups.com, mongod...@googlegroups.com, mgo-...@googlegroups.com
> - gobson.Setter interface has been improved significantly to
>  be more useful in real world scenarios.  Now pointer receivers
>  will work in most circumstances, and the argument provided has
>  a bson.Raw type.  Note that this is an incompatible change, so
>  if you're using Setter, your application must be tweaked.
>
>  More details about the new interface at:
>
>      http://goneat.org/lp/gobson#Setter

This is the right URL:

     http://goneat.org/lp/gobson/bson#Setter

Reply all
Reply to author
Forward
0 new messages