Releases: ddspog/mongo
Releases · ddspog/mongo
v2.4.2
v2.4.1
v2.4.0
v2.3.0
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
v2.1.0
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()