Skip to content

v2.0.0

Compare
Choose a tag to compare
@dancannon dancannon released this 13 Apr 19:19
· 266 commits to master since this release

Changed

  • GoRethink now uses the v1.0 RethinkDB protocol which supports RethinkDB v2.3 and above. If you are using RethinkDB 2.2 or older please set HandshakeVersion when creating a session. For example:
r.Connect(
    ...
    HandshakeVersion: r.HandshakeV0_4,
    ...
)

Added

  • Added support for username/password authentication. To login pass your username and password when creating a session using the Username and Password fields in the ConnectOpts.
  • Added the Grant term
  • Added the Ordered optional argument to EqJoin
  • Added the Fold term and examples
  • Added the ReadOne and ReadAll helper functions for quickly executing a query and scanning the result into a variable. For examples see the godocs.
  • Added the Peek and Skip functions to the Cursor.
  • Added support for referential arrays in structs
  • Added the Durability argument to RunOpts/ExecOpts

Deprecated

  • Deprecated the root Wait term, r.Table(...).Wait() should now be used instead.
  • Deprecated session authentication using AuthKey

Fixed

  • Fixed issue with ReconfigureOpts field PrimaryTag

Thanks to all contributors who helped out with this release, especially @rschmukler and @russmatney for spending the time to work with me on fixing some of the more difficult issues in this release.