Changelog History
Page 5
-
v1.0.0 Changes
June 27, 2015๐ 1.0.0 is finally here, This is the first stable production ready release of RethinkDB-go!
๐ 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
-
v0.7.2 Changes
May 05, 2015โ Added
- Added support for connecting to a server using TLS (#179)
๐ Fixed
- Fixed issue causing driver to fail to connect to servers with the HTTP admin interface disabled (#181)
- Fixed errors in documentation (#182, #184)
- Fixed RunWrite not closing the cursor (#185)
-
v0.7.1 Changes
April 19, 2015๐ Changed
- ๐ Improved logging of connection errors.
๐ Fixed
- ๐ Fixed bug causing empty times to be inserted into the DB even when the omitempty tag was set.
- ๐ Fixed node status refresh loop leaking goroutines.
-
v0.7.0 Changes
March 30, 2015๐ This release includes support for RethinkDB 2.0 and connecting to clusters. To connect to a cluster you should use the new
Addresses
field inConnectOpts
, for example:session, err := r.Connect(r.ConnectOpts{ Addresses: []string{"localhost:28015", "localhost:28016"}, }) if err != nil { log.Fatalln(err.Error()) }
๐ Also added was the ability to read from a cursor using a channel, this is especially useful when using changefeeds. For more information see this gist
cursor, err := r.Table("items").Changes() ch := make(chan map[string]interface{}) cursor.Listen(ch)
For more details checkout the README and godoc. As always if you have any further questions send me a message on Gitter.
- โ Added the ability to connect to multiple nodes, queries are then distributed between these nodes. If a node stops responding then queries stop being sent to this node.
- โ Added the
DiscoverHosts
optional argument toConnectOpts
, when this value istrue
the driver will listen for new nodes added to the cluster. - โ Added the
Addresses
optional argument toConnectOpts
, this allows the driver to connect to multiple nodes in a cluster. - โ Added the
IncludeStates
optional argument toChanges
. - โ Added
MinVal
andMaxVal
which represent the smallest and largest possible values. - โ Added the
Listen
cursor helper function which publishes database results to a channel. - โ Added support for optional arguments for the
Wait
function. - โ Added the
Type
function to theCursor
, by default this value will be "Cursor" unless using a changefeed. - ๐ Changed the
IndexesOf
function toOffsetsOf
. - ๐ Changed driver to use the v0.4 protocol (used to use v0.3).
- ๐ Fixed geometry tests not properly checking the expected results.
- ๐ Fixed bug causing nil pointer panics when using an
Unmarshaler
- ๐ Fixed dropped millisecond precision if given value is too old
-
v0.6.3 Changes
March 04, 2015โ Added
- โ Add
IdentifierFormat
optarg toTableOpts
(#158)
๐ Fixed
- ๐ Fix struct alignment for ARM and x86-32 builds (#153)
- ๐ Fix sprintf format for geometry error message (#157)
- ๐ Fix duplicate if block (#159)
- ๐ Fix incorrect assertion in decoder tests
- โ Add
-
v0.6.2 Changes
February 15, 2015- ๐ Fixed
writeQuery
being too small when sending large queries
- ๐ Fixed
-
v0.6.1 Changes
February 13, 2015- โฌ๏ธ Reduce GC by using buffers when reading and writing
- ๐ Fixed encoding
time.Time
ignoring millseconds - ๐ Fixed pointers in structs that implement the
Marshaler
/Unmarshaler
interfaces being ignored
-
v0.6.0 Changes
January 01, 2015๐ There are some major changes to the driver with this release that are not related to the RethinkDB v1.16 release. Please have a read through them:
- ๐ Improvements to result decoding by caching reflection calls.
- Finished implementing the
Marshaler
/Unmarshaler
interfaces - ๐ Connection pool overhauled. There were a couple of issues with connections in the previous releases so this release replaces the
fatih/pool
package with a connection pool based on thedatabase/sql
connection pool. - Another change is the removal of the prefetching mechanism as the connection+cursor logic was becoming quite complex and causing bugs, hopefully this will be added back in the near future but for now I am focusing my efforts on ensuring the driver is as stable as possible #130 #137
- Due to the above change the API for connecting has changed slightly (The API is now closer to the
database/sql
API.ConnectOpts
changes:MaxActive
renamed toMaxOpen
IdleTimeout
renamed toTimeout
Cursor
s are now only closed automatically when calling eitherAll
orOne
Exec
now takesExecOpts
instead ofRunOpts
. The only difference is thatExec
has theNoReply
field
With that out the way here are the v1.16 changes:
- โ Added
Range
which generates all numbers from a given range - โ Added an optional squash argument to the changes command, which lets the server combine multiple changes to the same document (defaults to true)
- โ Added new admin functions (
Config
,Rebalance
,Reconfigure
,Status
,Wait
) - Added support for
SUCCESS_ATOM_FEED
- โ Added
MinIndex
+MaxInde
x functions - โ Added
ToJSON
function - โก๏ธ Updated
WriteResponse
type
๐ Since this release has a lot of changes and although I have tested these changes sometimes things fall through the gaps. If you discover any bugs please let me know and I will try to fix them as soon as possible.
-
v0.5.1 Changes
December 14, 2014- ๐ Fixed empty slices being returned as
[]T(nil)
not[]T{}
#138
- ๐ Fixed empty slices being returned as
-
v0.5.0 Changes
October 06, 2014- โ Added geospatial terms (
Circle
,Distance
,Fill
,Geojson
,ToGeojson
,GetIntersecting
,GetNearest
,Includes
,Intersects
,Line
,Point
,Polygon
,PolygonSub
) - โ Added
UUID
term for generating unique IDs - โ Added
AtIndex
term, combinesNth
andGetField
- โ Added the
Geometry
type, see the types package - โก๏ธ Updated the
BatchConf
field inRunOpts
, now uses theBatchOpts
type - โ Removed support for the
FieldMapper
interface
Internal Changes
- ๐ Fixed encoding performance issues, greatly improves writes/second
- โก๏ธ Updated
Next
to zero the destination value every time it is called.
- โ Added geospatial terms (