This is a major release, and makes using the client much easier to develop applications.
-
New Features
- Added Marshalling Support for Put and Get operations. Refer to Marshalling Test to see how to take advantage.
- Added
Recordset.Results()
. Consumers of a Recordset do not have to implement a select anymore.
recordset, err := client.ScanAll(...) for res := range recordset.Results() { if res.Err != nil { // handle error here } else { // process record here fmt.Println(res.Record.Bins) } }
Use of the old pattern is discouraged and deprecated, and direct access to
recordset.Records
andrecordset.Errors
will be removed in a future release. -
Improvements
- Custom Types are now allowed as bin values.