Releases: zegl/goriak
Releases · zegl/goriak
v2.3.0
Features
- AutoMap: Added support for more types as values in golang
map
. All signed ints, and byte arrays. - AutoMap: Added support for
time.Time
in golangstruct
. - AutoMap:
Flag
andRegister
helper types. *goriak.Set
: Update content and context in the Set after a successfulExec()
.- Custom conflict resolution: Custom conflict resolution with the new
ConflictResolver
interface onGetJSON
. There is also aConflictResolver()
function in the query builder that you can use with bothGetRaw
andGetJSON
. See godoc for an example.
v2.2.3
v2.2.2
v2.2.1
Bugfixes
Fixed bug where...
- ... encoding errors in nested structs where not propagated properly
- ... the internal path to
*goriak.Set
and*goriak.Counter
was not set correctly in combination with Golangmap
s. - ... the program could crash if using uninitialized helper types inside Golang
map
s.
v2.2.0
Features
- Added the methods
Has([]byte) bool
andHasString(string) bool
to*goriak.Set
. - The value of a
*goriak.Counter
is now updated after callingExec()
. *goriak.Set
and*goriak.Counter
are now initialised if not already set when callingCommand.Set()
.
Bugfixes
*goriak.Counter
internalincreaseBy
value is now reset after each successfulExec()
.
v2.1.1
GoRiak 2.1.0
API changes
Added new methods for tuneable consistency.
WithPw()
WithDw()
WithW()
WithRr()
WithPr()
WithR()
See the this Riak blog post for more information.
Added functionality
- All chain-able commands can now be performed in any order. Previously the methods
Get()
,SetRaw()
(etc ...) had to be performed last. - Added support for more integer types (
int8
,int16
,int32
,int64
,int
) inGet()
andSet()
. - Ignore fields in
Get()
by using the taggoriak:"-"
GoRiak 2.0.0
GoRiak 2.0.0
introduces a new API for performing your commands.
All commands are now performed through a general query builder. Commands to the query builder are chain-able, which allows you to easier build your own tools to help you doing advanced commands in your application.
// Example of how to retrieve an object with Riak Data Types
goriak.Bucket("bucketName", "bucketType").Get("key", &obj).Run(connection)
Documentation of the new API is available on GoDoc, and in the README.
Use the new API with import "gopkg.in/zegl/goriak.v2"
.
/ zegl
goriak 1.1
Added a new goriak.Set
datatype for use together with AutoMaps. The Set datatype allows for simple Add and Remove operations, and lets you save the delta action simply without having to use MapOperations.