Skip to content

petergebala/dm-dynamodb-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dm::Dynamodb::Adapter

DynamodDB adapter for DataMapper. Support only API verions: 2012-08-10

Installation

Add this line to your application's Gemfile:

gem 'dm-dynamodb-adapter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dm-dynamodb-adapter

Usage

Configuration

In initializer or configuration file please fill crendetials:

  DataMapper::Dynamodb::Config.setup do |config|
    config.aws_access_key = ENV['AWS_ACCESS_KEY_ID']
    config.aws_secret_key = ENV['AWS_SECRET_ACCESS_KEY']
    config.aws_region     = ENV['AWS_REGION']
    config.api_version    = ENV['API_VERSION']
  end

Tests:

Export your test db credentials or use dotenv:

  export AWS_ACCESS_KEY_ID='...'
  export AWS_SECRET_ACCESS_KEY='...'
  export AWS_REGION='...'
  export API_VERSION='...'

Run: rspec spec to check if tests are passing.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

AWS DynamoDB adapter to DataMapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages