Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mgo and gobson 2011-03-17
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Gustavo Niemeyer  
View profile  
 More options Mar 17 2011, 6:31 am
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Thu, 17 Mar 2011 07:31:37 -0300
Local: Thurs, Mar 17 2011 6:31 am
Subject: [ANN] mgo and gobson 2011-03-17
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[ANN] mgo and gobson 2011-03-17" by Gustavo Niemeyer
Gustavo Niemeyer  
View profile  
 More options Mar 17 2011, 2:16 pm
From: Gustavo Niemeyer <gust...@niemeyer.net>
Date: Thu, 17 Mar 2011 15:16:41 -0300
Local: Thurs, Mar 17 2011 2:16 pm
Subject: Re: [go-nuts] [ANN] mgo and gobson 2011-03-17
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.

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »