Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds

MongoDB Go Driver Alpha 2 released!

Save for later
  • 120 min read
  • 2018-03-08 00:00:00

article-image
The MongoDB Go driver team has announced the second alpha release of the official Go driver.

The official MongoDB Driver API for Go has certain changes as a part of the second alpha release. This release mainly contains improvements to the user experience and bug fixes. A point to be noted here is that this is an alpha software, so it is not recommended for production use. The MongoDB Go Driver team said, “following semantic versioning, the v0 version of the public API should not be considered stable and could change.”

Changes since the prior release include:

Unlock access to the largest independent learning library in Tech for FREE!
Get unlimited access to 7500+ expert-authored eBooks and video courses covering every tech area you can think of.
Renews at $19.99/month. Cancel anytime

New Features:

  • Examples for sample shell commands created
  • Marshal, Unmarshal, and UnmarshalDocument functions added to BSON library
  • Stringer for objectid.ObjectID implemented

Improvements:

  • New BSON library is tested against BSON corpus
  • ReplaceOptions replaced from UpdateOptions
  • CRUD tests resynced to update insertMany test format to a map
  • Namespace type added for options in mongo package.
  • DecodeBytes method added to the Cursor
  • A method added to bson.Value to get the offset into the underlying []byte
  • mongo.Cursor is made its own interface
  • Document.ElementAt usability improved
  • bson.ArrayConstructor renamed to bson.ValueConstructor
  • FromHex function added to the objectid package

Bugs:

  • Lookup should properly traverse Arrays
  • Documentation for the bson package wrt the builder.Builder type needs to be clarified
  • Ensure methods of *Document handle the case where *Document is nil
  • Update bson.ErrTooSmall
  • bson.Reader.Lookup should return ErrElementNotFound if no element is found

The official documentation is available on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group.