Skip to content

Releases: rethinkdb/rethinkdb-go

v3.0.5

28 Sep 17:36
Compare
Choose a tag to compare

Fix typo at http opts

Fix default timeouts

04 Sep 17:43
Compare
Choose a tag to compare
  • Fixed default context timeout if one of config's timeout is omitted

v3.0.3

03 Sep 10:23
Compare
Choose a tag to compare
  • Added support to cancellation queries and timeouts with context.Context passed through RunOpts
  • Fixed import path for sirupsen/logrus due to repo was renamed

v3.0.1

30 Jan 21:29
Compare
Choose a tag to compare

Fixed

  • Fixed import paths
  • Updated Go version used by Travis

v3.0.0

06 Dec 22:08
Compare
Choose a tag to compare

v3.0.0 - 2016-12-06

Unfortunately this will likely be the last release I plan to work on. This is due to the following reasons:

  • Over the last few years while I have spent a lot of time maintaining this driver I have not used it very much for my own personal projects.
  • My job has been keeping me very busy lately and I don't have as much time to work on this project as I used to.
  • The company behind RethinkDB has shut down and while I am sure the community will keep the database going it seems like a good time for me to step away from the project.
  • The driver itself is in a relatively good condition and many companies are using the existing version in production.

I hope you understand my decision to step back from the project, if you have any questions or would be interested in take over some of the maintenance of the project please let me know. To make this process easier I have also decided to move the repository to the GoRethink organisation. All existing imports should still work.

Thanks to everybody who got involved with this project over the last ~4 years and helped out, I have truly enjoyed the time I have spent building this library and I hope both RethinkDB and this driver manage to keep going.

Changed

  • Moved project to gorethink organisation
  • Fixed behaviour when unmarshaling nil slices

Fixed

  • Fix possible deadlock when calling Session.Reconnect
  • Fixed another bug with panic/infinite loop when closing cursor during reads
  • Fixed goroutine leak when calling Session.Close

v2.2.2

02 Oct 17:18
Compare
Choose a tag to compare

Changed

  • The gorethink struct tag is now always checked even after calling SetTags

Fixed

  • Fixed infinite loop in cursor when closed during read

v2.2.1

20 Sep 21:24
Compare
Choose a tag to compare

Added

  • Added State and Error to ChangeResponse

Fixed

  • Fixed panic caused by cursor trying to read outstanding responses while closed
  • Fixed panic when using mock session

v2.2.0

17 Aug 21:09
Compare
Choose a tag to compare

Added

  • Added support for optional arguments to r.JS()
  • Added NonVotingReplicaTags optional argument to TableCreateOpts
  • Added root term TypeOf, previously only the method term was supported
  • Added root version of Group terms (Group, GroupByIndex, MultiGroup, MultiGroupByIndex)
  • Added root version of Distinct
  • Added root version of Contains
  • Added root version of Count
  • Added root version of Sum
  • Added root version of Avg
  • Added root version of Min
  • Added root version of MinIndex
  • Added root version of Max
  • Added root version of MaxIndex
  • Added ReadMode to RunOpts
  • Added the Interface function to the Cursor which returns a queries result set as an interface{}
  • Added GroupOpts type
  • Added GetAllOpts type
  • Added MinOpts/MaxOpts types
  • Added OptArgs method to Term which allows optional arguments to be specified in an alternative way, for example:
r.DB("examples").Table("heroes").GetAll("man_of_steel").OptArgs(r.GetAllOpts{
    Index: "code_name",
})
  • Added ability to create compound keys from structs, for example:
type User struct {
  Company string `gorethink:"id[0]"`
  Name    string `gorethink:"id[1]"`
  Age     int    `gorethink:"age"`
}
// Creates
{"id": [COMPANY, NAME], "age": AGE}
  • Added Merge function to encoding package that decodes data into a value without zeroing it first.

Changed

  • Renamed PrimaryTag to PrimaryReplicaTag in ReconfigureOpts
  • Renamed NotAtomic to NonAtomic in ReplaceOpts and UpdateOpts
  • Changed behaviour of function callbacks to allow arguments to be either of type r.Term or interface {} instead of only r.Term
  • Changed logging to be disabled by default, to enable logs change the output writer of the logger. For example: r.Log.Out = os.Stderr

Fixed

  • Fixed All not working correctly when the cursor is created by Mock
  • Fixed byte arrays not being correctly converted to the BINARY pseudo-type

v2.1.2

22 Jul 21:08
Compare
Choose a tag to compare

Added

  • Added the InitialCap field to ConnectOpts to replace MaxIdle as the name no longer made sense.

Changed

  • Improved documentation of ConnectOpts
  • Default value for KeepAlivePeriod changed from 0 to 30s

Deprecated

  • Deprecated the field MaxIdle in ConnectOpts, it has now been replaced by InitialCap which has the same behaviour as before. Setting both fields will still work until the field is removed in a future version.

Fixed

  • Fixed issue causing changefeeds to hang if no data was received

v2.1.1

12 Jul 21:34
Compare
Choose a tag to compare

Added

  • Added session.Database() which returns the current default database

Changed

  • Added more documentation

Fixed

  • Fixed Random() not being implemented correctly and added tests (Thanks to @bakape for the PR)