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
IsConnected
function toSession
.
Fixed
- Fixed panic when scanning through results caused by incorrect queue implementation.
v1.2.0
Added
- Added
UUID
term - Added
Values
term - Added
IncludeInitial
andChangefeedQueueSize
toChangesOpts
- Added
UseJSONNumber
toConnectOpts
which 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
HostDecayDuration
toConnectOpts
to configure how hosts are selected. For more information see the godoc.
Changed
- Timezones from
time.Time
are now stored in the database, before all times were stored as UTC. To convert a gotime.Time
back to UTC you can callt.In(time.UTC)
. - Improved host selection to use
hailocab/go-hostpool
to select nodes based on recent responses and timings. - Changed connection pool to use
fatih/pool
instead of a custom connection pool, this has caused some internal API changes and the behaviour ofMaxIdle
andMaxOpen
has slightly changed. This change was made mostly to make driver maintenance easier.MaxIdle
now configures the initial size of the pool, the name of this field will likely change in the future.- Not setting
MaxOpen
no 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
NodeRefreshInterval
inConnectOpts
- Deprecated
SetMaxIdleConns
andSetMaxOpenConns
, 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.TableList
andr.TableDrop
)
Removed
- Removed
ReadMode
option fromRunOpts
andExecOpts
(incorrectly added in v1.1.0)
Fixed
- Fixed
Decode
no longer setting pointer to nil on document not found - Fixed panic when
fetchMore
returns 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
UseOutdated
withReadMode
- Added
EmergencyRepair
andNonVotingReplicaTags
toReconfigureOpts
- Added
Union
as a root term - Added
Branch
as a root term - Added
ReadTimeout
andWriteTimeout
toRunOpts
andExecOpts
- Exported
github.com/Sirupsen/logrus.Logger
asLog
- Added support for encoding maps with non-string keys
- Added
Round
,Ceil
andFloor
terms - Added race detector to CI
Changed
- Changed
Timeout
connect argument to only configure the connection timeout. - Replaced
Db
withDB
inRunOpts
andExecOpts
(Db
still works for now) - Made
Cursor
andSession
safe for concurrent use - Replaced
ErrClusterClosed
withErrConnectionClosed
Deprecated
- Deprecated
UseOutdated
optional argument - Deprecated
Db
inRunOpt
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
,Replicas
andPrimaryReplicaTag
optional arguments inTableCreateOpts
. - Added
MultiGroup
andMultiGroupByIndex
which are equivalent to the runninggroup
with themulti
optional argument set to true.
Changed
- Renamed
Db
toDB
. - Renamed
DbCreate
toDBCreate
. - Renamed
DbDrop
toDBDrop
. - Renamed
RqlConnectionError
toRQLConnectionError
. - Renamed
RqlDriverError
toRQLDriverError
. - Renamed
RqlClientError
toRQLClientError
. - Renamed
RqlRuntimeError
toRQLRuntimeError
. - Renamed
RqlCompileError
toRQLCompileError
. - Renamed
Js
toJS
. - Renamed
Json
toJSON
. - Renamed
Http
toHTTP
. - Renamed
GeoJson
toGeoJSON
. - Renamed
ToGeoJson
toToGeoJSON
. - Renamed
WriteChanges
toChangeResponse
, 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
CacheSize
andDataCenter
optional arguments inTableCreateOpts
. - Removed
CacheSize
optional argument fromInsertOpts
v1.0.0 RC1
Added
- Added more documentation.
- Added
Shards
,Replicas
andPrimaryReplicaTag
optional arguments inTableCreateOpts
. - Added
MultiGroup
andMultiGroupByIndex
which are equivalent to the runninggroup
with themulti
optional argument set to true.
Changed
- Renamed
Db
toDB
. - Renamed
DbCreate
toDBCreate
. - Renamed
DbDrop
toDBDrop
. - Renamed
RqlConnectionError
toRQLConnectionError
. - Renamed
RqlDriverError
toRQLDriverError
. - Renamed
RqlClientError
toRQLClientError
. - Renamed
RqlRuntimeError
toRQLRuntimeError
. - Renamed
RqlCompileError
toRQLCompileError
. - Renamed
Js
toJS
. - Renamed
Json
toJSON
. - Renamed
Http
toHTTP
. - Renamed
GeoJson
toGeoJSON
. - Renamed
ToGeoJson
toToGeoJSON
. - Renamed
WriteChanges
toChangeResponse
, 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
CacheSize
andDataCenter
optional arguments inTableCreateOpts
. - Removed
CacheSize
optional argument fromInsertOpts