gorethink v2.2.0 Release Notes
Release Date: 2016-08-16 // over 7 years ago-
โ Added
- Added support for optional arguments to
r.JS()
- Added
NonVotingReplicaTags
optional argument toTableCreateOpts
- 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
toRunOpts
- Added the
Interface
function to theCursor
which returns a queries result set as aninterface{}
- Added
GroupOpts
type - Added
GetAllOpts
type - Added
MinOpts
/MaxOpts
types - Added
OptArgs
method toTerm
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 `rethinkdb:"id[0]"` Name string `rethinkdb:"id[1]"` Age int `rethinkdb:"age"` } // Creates {"id": [COMPANY, NAME], "age": AGE}
- Added
Merge
function toencoding
package that decodes data into a value without zeroing it first. - Added
MockAnything
functions to allow mocking of only part of a query (Thanks to @pzduniak)
๐ Changed
- Renamed
PrimaryTag
toPrimaryReplicaTag
inReconfigureOpts
- Renamed
NotAtomic
toNonAtomic
inReplaceOpts
andUpdateOpts
- Changed behaviour of function callbacks to allow arguments to be either of type
r.Term
orinterface {}
instead of onlyr.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 byMock
- Fixed
Mock
not matching queries containing functions - Fixed byte arrays not being correctly converted to the BINARY pseudo-type
- Added support for optional arguments to