gorethink v0.7.0 Release Notes
Release Date: 2015-03-30 // about 9 years ago-
๐ This release includes support for RethinkDB 2.0 and connecting to clusters. To connect to a cluster you should use the new
Addresses
field inConnectOpts
, for example:session, err := r.Connect(r.ConnectOpts{ Addresses: []string{"localhost:28015", "localhost:28016"}, }) if err != nil { log.Fatalln(err.Error()) }
๐ Also added was the ability to read from a cursor using a channel, this is especially useful when using changefeeds. For more information see this gist
cursor, err := r.Table("items").Changes() ch := make(chan map[string]interface{}) cursor.Listen(ch)
For more details checkout the README and godoc. As always if you have any further questions send me a message on Gitter.
- โ Added the ability to connect to multiple nodes, queries are then distributed between these nodes. If a node stops responding then queries stop being sent to this node.
- โ Added the
DiscoverHosts
optional argument toConnectOpts
, when this value istrue
the driver will listen for new nodes added to the cluster. - โ Added the
Addresses
optional argument toConnectOpts
, this allows the driver to connect to multiple nodes in a cluster. - โ Added the
IncludeStates
optional argument toChanges
. - โ Added
MinVal
andMaxVal
which represent the smallest and largest possible values. - โ Added the
Listen
cursor helper function which publishes database results to a channel. - โ Added support for optional arguments for the
Wait
function. - โ Added the
Type
function to theCursor
, by default this value will be "Cursor" unless using a changefeed. - ๐ Changed the
IndexesOf
function toOffsetsOf
. - ๐ Changed driver to use the v0.4 protocol (used to use v0.3).
- ๐ Fixed geometry tests not properly checking the expected results.
- ๐ Fixed bug causing nil pointer panics when using an
Unmarshaler
- ๐ Fixed dropped millisecond precision if given value is too old