Skip to content

Releases: zegl/goriak

v2.3.0

03 Dec 15:21
6acd15a
Compare
Choose a tag to compare

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 golang struct.
  • AutoMap: Flag and Register helper types.
  • *goriak.Set: Update content and context in the Set after a successful Exec().
  • Custom conflict resolution: Custom conflict resolution with the new ConflictResolver interface on GetJSON. There is also a ConflictResolver() function in the query builder that you can use with both GetRaw and GetJSON. See godoc for an example.

v2.2.3

23 Nov 13:41
Compare
Choose a tag to compare

Bugfixes

  • Fix bug where helper types where not properly initialised as expected with Command.Set().

v2.2.2

22 Nov 14:37
Compare
Choose a tag to compare

Bugfixes

  • Fixed bug where MapOperation()s with an empty Context failed even in conditions where a Context is not required.

v2.2.1

19 Nov 11:35
06b0b67
Compare
Choose a tag to compare

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 Golang maps.
  • ... the program could crash if using uninitialized helper types inside Golang maps.

v2.2.0

18 Nov 22:25
62eace6
Compare
Choose a tag to compare

Features

  • Added the methods Has([]byte) bool and HasString(string) bool to *goriak.Set.
  • The value of a *goriak.Counter is now updated after calling Exec().
  • *goriak.Set and *goriak.Counter are now initialised if not already set when calling Command.Set().

Bugfixes

  • *goriak.Counter internal increaseBy value is now reset after each successful Exec().

v2.1.1

07 Nov 19:31
29a08dc
Compare
Choose a tag to compare

Bugfixes

  • Renamed WithRr() to the correct name WithRw(). This is not considered to be a breaking change as the old name does not make any sense with Riak KV.

GoRiak 2.1.0

06 Nov 16:42
fd88720
Compare
Choose a tag to compare

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) in Get() and Set().
  • Ignore fields in Get() by using the tag goriak:"-"

GoRiak 2.0.0

05 Nov 15:18
7862413
Compare
Choose a tag to compare

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

30 Oct 12:40
Compare
Choose a tag to compare

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.