Skip to content

Releases: ddspog/mongo

v2.4.2

04 Jul 16:54
Compare
Choose a tag to compare

Publish Marshal and Unmarshal functions

I've published a Marshal and Unmarshal function that operates on M objects.

v2.4.1

24 May 05:22
Compare
Choose a tag to compare

Update calls to bdd testing package

I've updated the calls to bdd package, which has gone through a big change in its structure.

v2.4.0

13 May 01:10
Compare
Choose a tag to compare

Resume Handler

I've reduced some code from Handle, to operate using Document. It will do every function by itself, which the one embedding Handle, should just enable chaining and make casting to the desired type.

v2.3.0

11 May 19:43
Compare
Choose a tag to compare

Eliminate need for omitempty tags

Using my mongo package, all Documents defined should have all of its field with the option bson tag omitempty. Now I use my own version of Mashal and Unmarshal methods, which use omitempty tags as default.

So, no need to put omitempty tags anymore!

v2.2.0

11 May 19:41
Compare
Choose a tag to compare

Add support to Indexes

I've now added support to Indexes, which can be added through mongo.NewHandler(), as the optional argument.

v2.1.0

09 May 14:30
Compare
Choose a tag to compare

Allow use of Safely operations

I've created a new method for Handle: Safely(). It will set property to true, which will trigger Handle.Close() after any collection operation within it.

Creating the Handler like the docs orient, will enable use of chaining:

usr, err := huser.New().SearchFor(mongo.M{"username": "myuser"}).Safely().Find()

v2.0.0

09 May 02:31
Compare
Choose a tag to compare

v2.0: No mocking, use TestableConnecter

I've learned how to use mgo/dbtest.DBServer, and implemented a way to make my tests using this. The changes removed a Loooooot of unnecessary code. Since it's incompatible with mocking version, I've moved to v2.

v1.3.0

04 May 17:01
Compare
Choose a tag to compare

Change vendoring to vgo tool

I've changed the vendoring tool to the future official tool vgo.

v1.2.0

04 May 15:52
Compare
Choose a tag to compare

Add LinkedHandle concept

I've added the concept of LinkedHandles, objects that will reduce a lot of code necessary to operate within the MongoDB.

v1.1.0

19 Apr 06:27
Compare
Choose a tag to compare

Re-import bson types

I've re-imported mgo/bson types to this project, allowing the user to avoid importing unwanted versions.