Tests (in Ruby) to illustrate use of the aws-sdk API for DynamoDB
- Operations such as
list_tables
,create_table
,delete_table
,get_item
, andquery
are included in most spec tests - table with hash key and range key
- table with hash key
- global secondary indexes
- local secondary indexes
- update_item
- conditional put_item
- batch_get_item
- batch_write_item
- scan
- Get local database imitating DynamoDB: dynamodb-local
- Run
dynamodb-local
- Run
rspec
tests
# Run dynamodb-local
$ dynamodb-local --help
$ dynamodb-local &
# Run tests
$ rvm gemset use --create dynamodb-examples
$ rvm current
ruby-2.6.0@dynamodb-examples
$ bundle install --binstubs
$ rspec -f d