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 in ConnectOpts, 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 to ConnectOpts, when this value is true the driver will listen for new nodes added to the cluster.
    • โž• Added the Addresses optional argument to ConnectOpts, this allows the driver to connect to multiple nodes in a cluster.
    • โž• Added the IncludeStates optional argument to Changes.
    • โž• Added MinVal and MaxVal 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 the Cursor, by default this value will be "Cursor" unless using a changefeed.
    • ๐Ÿ”„ Changed the IndexesOf function to OffsetsOf .
    • ๐Ÿ”„ 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