June 2017
Intermediate to advanced
400 pages
10h 32m
English
The mgo package also provides connection pooling, and many ways to tweak and configure your connections to the mongodb database. The examples of this recipe are fairly basic, but they illustrate how easy it is to reason about and query a document-based database. The package implements a BSON data type, and marshaling to and from it is very similar to working with JSON.
Consistency guarantees and best practice for mongodb are outside the scope of this book--but it's a pleasure to work with it in the Go language.
Read now
Unlock full access