[ANN] mgo and gobson 2011-03-17

17 views
Skip to first unread message

Gustavo Niemeyer

unread,
Mar 17, 2011, 6:31:37 AM3/17/11
to golan...@googlegroups.com, mgo-...@googlegroups.com
Some quick news on both packages:

http://labix.org/mgo
http://labix.org/gobson

- The package name from gobson has changed to bson. You should
now import from "launchpad.net/gobson/bson".

- Run is now a method on a Database as well, in addition to the Session
(thanks to Gary Burd for the suggestion):

http://goneat.org/lp/mgo/#Database.Run

- Missing Remove and RemoveAll methods implemented (also
pointed out by Gary):

http://goneat.org/lp/mgo/#Collection.Remove
http://goneat.org/lp/mgo/#Collection.RemoveAll

In addition to these, convenient support for tailable cursors is in the works,
and will be available soon.

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

Gustavo Niemeyer

unread,
Mar 17, 2011, 2:16:41 PM3/17/11
to Nicolas Palumbo, mgo-...@googlegroups.com
Hi Nicolas,

> Does mgo use gobson under the hood, or I have to programatically serialize
> and deserialize?

Right, it's done automatically for you.

You'll only have to use gobson directly if you want to use some of the
bson-specific types (e.g. bson.D, bson.ObjectId, etc), but even then
you don't have to serialize/deserialize those types by hand.. just use
them in your maps/structs/etc.

Reply all
Reply to author
Forward
0 new messages