mboudreau / Alternator

A mock DynamoDB that runs locally for testing purposes - DEPRECATED, PLEASE USE DYNAMODB LOCAL: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html
Apache License 2.0
78 stars 39 forks source link

Dual api versions #66

Closed rrutt closed 11 years ago

rrutt commented 11 years ago

Refer to Issue 65:

https://github.com/mboudreau/Alternator/issues/65

Amazon created a new specification for the DynamoDB API that is NOT backward compatible with the earlier version. The earlier version of the API is still supported but is deprecated.

Note however that only the features that were already available thru the original API version are supported.

When processing against the newer API protocol, Alternator simply maps the request objects to the original format and calls the pre-existing logic. It then maps the result to the new API protocol format. Any exceptions are also remapped from the dynamodb namespace to the dynamodbv2 namespace.

This revision also implements the BETWEEN, BEGINS_WITH, and CONTAINS scan filters and corrects the comparison direction for the GE scan filter.

rrutt commented 11 years ago

Refer to Pull Request 66:

https://github.com/mboudreau/Alternator/pull/66

sashee commented 11 years ago

Just migrated all my projects to DynamoDBV2, and everything works fine Alternator-side. This pull request should be merged

mboudreau commented 11 years ago

Will do. On Jun 12, 2013 12:27 AM, "sashee" notifications@github.com wrote:

Just migrated all my projects to DynamoDBV2, and everything works fine Alternator-side. This pull request should be merged

— Reply to this email directly or view it on GitHubhttps://github.com/mboudreau/Alternator/pull/66#issuecomment-19265117 .

rrutt commented 11 years ago

I also ran all tests with 'mvn verify' and confirmed they all pass with the latest commit from sashee.

mboudreau commented 11 years ago

Good to know. I'll be updating and deploying as soon as I can. On Jun 14, 2013 12:03 AM, "Rick Rutt" notifications@github.com wrote:

I also ran the all tests with 'mvn verify' and confirmed they all pass with the latest commit from sashee.

— Reply to this email directly or view it on GitHubhttps://github.com/mboudreau/Alternator/pull/66#issuecomment-19393602 .

doapp-nick commented 11 years ago

I see this seems pretty recent, but it looks like the changes to support dbv2 are not in 0.5.0? Any idea of when they will become available in repo?

mboudreau commented 11 years ago

In about two hours. On Jun 18, 2013 8:03 AM, "Nick Campion" notifications@github.com wrote:

I see this seems pretty recent, but it looks like the changes to support dbv2 are not in 0.5.0? Any idea of when they will become available in repo?

— Reply to this email directly or view it on GitHubhttps://github.com/mboudreau/Alternator/pull/66#issuecomment-19578121 .

doapp-nick commented 11 years ago

Fantastic, I'll do my part to test it tonight then :D

mboudreau commented 11 years ago

Alright guys, version 0.6.0 deployed, now with V2 support. I'm probably going to look into re-architecting it a bit in the future since I don't like having 2 classes for different versions. I think it should be possible to do one for both.

Cheers.