Skip to content

Releases: jcabi/jcabi-dynamo

AttributeValueUpdate

09 May 07:54
Compare
Choose a tag to compare

Item.put() is working with AttributeValueUpdate instead of AttributeValue, which makes it possible to do ADD/REMOVE operations on attributes.

JDK6 compatible

06 May 11:38
Compare
Choose a tag to compare

This version is JDK6 compatible

withIndexName() and withSelect()

04 May 08:40
Compare
Choose a tag to compare

Two new methods added to QueryValve: withIndexName() and withSelect()

More RetryOnFailure annotations

04 May 05:45
Compare
Choose a tag to compare

In this version all methods in com.jcabi.dynamo.retry package are annotated with @RetryOnFailure, without exception

MkRegion

10 Mar 11:32
Compare
Choose a tag to compare

This version introduces a new class MkRegion, which mocks DynamoDB in a file (H2 database, at the moment):

@Test
public void createsAndDeletesItems() {
  final Region region = new MkRegion(
    new H2Data().with(
      "users",
      new String[] {"id"},
      new String[] {"name", "age"}
    )
  );
  final Table table = region.table("users");
  table.put(
    new Attributes()
      .with("id", 10783)
      .with("name", "Jeff Lebowski")
      .with("age", 35)
  );
  MatcherAssert.assertThat(
    table.frame().iterator().next().get("name"),
    Matchers.equalTo("Jeff Lebowski")
  );
}

Longer waiting time in ReRegion

10 Dec 10:00
Compare
Choose a tag to compare

In this version, ReRegion waits longer between attempts, which is supposed to fix problems with temporary absent connection or inability to load credentials. See #4

com.jcabi.dynamo.retry package

07 Nov 09:52
Compare
Choose a tag to compare

This version introduces a new package com.jcabi.dynamo.retry with a number of wrapper, including ReRegion (see #3). They retry all AWS calls at least three times before giving up. It's is strongly recommended to use them in production environments, since AWS SDK may act strange sometimes throwing runtime exceptions without cause. For example:

Region region = new ReRegion(new Region.Simple(credentials));

TableMocker#createIfAbsent()

02 Nov 08:06
Compare
Choose a tag to compare

New method TableMocker#createIfAbsent() added, that simplifies table creation in test scripts and unit tests.

Upgrade to AWS SDK 1.6.0

01 Oct 07:30
Compare
Choose a tag to compare

Version of AWS SDK was upgraded to 1.6.0, which solved a few problems, including the one reported in #2.

Bug fix in AwsItem

21 Sep 15:35
Compare
Choose a tag to compare

AwsItem had a wrong assumption that item keys are the same as its attributes. The problem was fixed in this release.