Releases: rethinkdb/rethinkdb-go
Releases · rethinkdb/rethinkdb-go
v1.3.0
Added
- Added new error types, the following error types can now be returned (Please note that other errors can be returned):
RQLClientError,RQLCompileError,RQLDriverCompileError,RQLServerCompileError,RQLAuthError,RQLRuntimeError,RQLQueryLogicError,RQLNonExistenceError,RQLResourceLimitError,RQLUserError,RQLInternalError,RQLTimeoutError,RQLAvailabilityError,RQLOpFailedError,RQLOpIndeterminateError,RQLDriverError,RQLConnectionError. - Added
IsConnectedfunction toSession.
Fixed
- Fixed panic when scanning through results caused by incorrect queue implementation.
v1.2.0
Added
- Added
UUIDterm - Added
Valuesterm - Added
IncludeInitialandChangefeedQueueSizetoChangesOpts - Added
UseJSONNumbertoConnectOptswhich changes the way the JSON unmarshal works when deserializing JSON with interface{}, it's preferred to use json.Number instead float64 as it preserves the original precision. - Added
HostDecayDurationtoConnectOptsto configure how hosts are selected. For more information see the godoc.
Changed
- Timezones from
time.Timeare now stored in the database, before all times were stored as UTC. To convert a gotime.Timeback to UTC you can callt.In(time.UTC). - Improved host selection to use
hailocab/go-hostpoolto select nodes based on recent responses and timings. - Changed connection pool to use
fatih/poolinstead of a custom connection pool, this has caused some internal API changes and the behaviour ofMaxIdleandMaxOpenhas slightly changed. This change was made mostly to make driver maintenance easier.MaxIdlenow configures the initial size of the pool, the name of this field will likely change in the future.- Not setting
MaxOpenno longer creates an unbounded connection pool per host but instead creates a pool with a maximum capacity of 2 per host.
Deprecated
- Deprecated the option
NodeRefreshIntervalinConnectOpts - Deprecated
SetMaxIdleConnsandSetMaxOpenConns, these options should now only be set when creating the session.
Fixed
- Fixed some type aliases not being correctly encoded when using
Expr.
v1.1.4
Added
- Added root table terms (
r.TableCreate,r.TableListandr.TableDrop)
Removed
- Removed
ReadModeoption fromRunOptsandExecOpts(incorrectly added in v1.1.0)
Fixed
- Fixed
Decodeno longer setting pointer to nil on document not found - Fixed panic when
fetchMorereturns an error - Fixed deadlock when closing changefeed
- Fixed stop query incorrectly waiting for response
- Fixed pointers not to be properly decoded
v1.1.3
v1.1.2
v1.1.1
v1.1.0
Added
- Replaced
UseOutdatedwithReadMode - Added
EmergencyRepairandNonVotingReplicaTagstoReconfigureOpts - Added
Unionas a root term - Added
Branchas a root term - Added
ReadTimeoutandWriteTimeouttoRunOptsandExecOpts - Exported
github.com/Sirupsen/logrus.LoggerasLog - Added support for encoding maps with non-string keys
- Added
Round,CeilandFloorterms - Added race detector to CI
Changed
- Changed
Timeoutconnect argument to only configure the connection timeout. - Replaced
DbwithDBinRunOptsandExecOpts(Dbstill works for now) - Made
CursorandSessionsafe for concurrent use - Replaced
ErrClusterClosedwithErrConnectionClosed
Deprecated
- Deprecated
UseOutdatedoptional argument - Deprecated
DbinRunOpt
Fixed
- Fixed race condition in node pool
- Fixed node refresh issue with RethinkDB 2.1 due to an API change
- Fixed encoding errors not being returned when running queries
v1.0.0
1.0.0 is finally here, This is the first stable production ready release of GoRethink!
In an attempt to make this library more "idiomatic" some functions have been renamed, for the full list of changes and bug fixes see below.
Added
- Added more documentation.
- Added
Shards,ReplicasandPrimaryReplicaTagoptional arguments inTableCreateOpts. - Added
MultiGroupandMultiGroupByIndexwhich are equivalent to the runninggroupwith themultioptional argument set to true.
Changed
- Renamed
DbtoDB. - Renamed
DbCreatetoDBCreate. - Renamed
DbDroptoDBDrop. - Renamed
RqlConnectionErrortoRQLConnectionError. - Renamed
RqlDriverErrortoRQLDriverError. - Renamed
RqlClientErrortoRQLClientError. - Renamed
RqlRuntimeErrortoRQLRuntimeError. - Renamed
RqlCompileErrortoRQLCompileError. - Renamed
JstoJS. - Renamed
JsontoJSON. - Renamed
HttptoHTTP. - Renamed
GeoJsontoGeoJSON. - Renamed
ToGeoJsontoToGeoJSON. - Renamed
WriteChangestoChangeResponse, this is now a general type and can be used when dealing with changefeeds. - Removed depth limit when encoding values using
Expr
Fixed
- Fixed issue causing errors when closing a changefeed cursor (#191)
- Fixed issue causing nodes to remain unhealthy when host discovery is disabled (#195)
- Fixed issue causing driver to fail when connecting to DB which did not have its canonical address set correctly (#200).
- Fixed ongoing queries not being properly stopped when closing the cursor.
Removed
- Removed
CacheSizeandDataCenteroptional arguments inTableCreateOpts. - Removed
CacheSizeoptional argument fromInsertOpts
v1.0.0 RC1
Added
- Added more documentation.
- Added
Shards,ReplicasandPrimaryReplicaTagoptional arguments inTableCreateOpts. - Added
MultiGroupandMultiGroupByIndexwhich are equivalent to the runninggroupwith themultioptional argument set to true.
Changed
- Renamed
DbtoDB. - Renamed
DbCreatetoDBCreate. - Renamed
DbDroptoDBDrop. - Renamed
RqlConnectionErrortoRQLConnectionError. - Renamed
RqlDriverErrortoRQLDriverError. - Renamed
RqlClientErrortoRQLClientError. - Renamed
RqlRuntimeErrortoRQLRuntimeError. - Renamed
RqlCompileErrortoRQLCompileError. - Renamed
JstoJS. - Renamed
JsontoJSON. - Renamed
HttptoHTTP. - Renamed
GeoJsontoGeoJSON. - Renamed
ToGeoJsontoToGeoJSON. - Renamed
WriteChangestoChangeResponse, this is now a general type and can be used when dealing with changefeeds. - Removed depth limit when encoding values using
Expr
Fixed
- Fixed issue causing inconsistent results when unmarshaling query response into structs (#192)
- Fixed issue causing errors when closing a changefeed cursor (#191)
- Fixed issue causing nodes to remain unhealthy when host discovery is disabled (#195)
Removed
- Removed
CacheSizeandDataCenteroptional arguments inTableCreateOpts. - Removed
CacheSizeoptional argument fromInsertOpts
