MongoDB Go Driver Alpha 4
Pre-release
Pre-release
The MongoDB Go driver team is pleased to release the fourth alpha of the official Go driver.
This release mainly contains user experience improvements and a refactor of internal driver structure. This is alpha software, so it is not recommended for production use.
Following semver, the v0 version of the public API should not be considered stable and could change.
Documentation can be found on GoDoc. Questions and inquiries can be asked on the mongo-go-driver Google Group. Bugs can be reported in the Go Driver Jira where a list of current issues can be found.
Release Notes
Bug
- [GODRIVER-298] - Passing a nil context.Next to Cursor#Next panics
- [GODRIVER-307] - Insert methods do not seem propogate duplicate key errors
- [GODRIVER-369] - Function mongo.newClient should not call topology.Connect
- [GODRIVER-370] - The ConnectTimeout ClientOption should be used when using the default Dialer
- [GODRIVER-371] - SocketTimeout should be set as Read and Write Timeouts on a Connection
- [GODRIVER-374] - examples_test.go : Topology is closed on Mac
- [GODRIVER-383] - Use Server Selection Timeout from connection string
- [GODRIVER-388] - Creating a new connection may leak a semaphore permit
- [GODRIVER-389] - Race condition when disconnecting a connection pool
- [GODRIVER-390] - Getting a connection from a pool can be starved indefinitely
- [GODRIVER-397] - Connections are leaked by the driver
New Feature
- [GODRIVER-301] - Add method to retrieve name from collection
- [GODRIVER-308] - provide method to drop database
- [GODRIVER-312] - Ensure WriteErrors are returned to the user
Improvement
- [GODRIVER-337] - Allow option.Optioner to return an error
- [GODRIVER-343] - Add Encoder support for the decimal.decimal128 type
- [GODRIVER-359] - Add bson.Zeroer types for comparing structs
- [GODRIVER-363] - BSON encode and decoder do not support time.Time, url.URL, or json.Number