Amazon Redshift adapter for sequel.
Add this line to your application's Gemfile:
gem 'sequel-redshift'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sequel-redshift
connecting to the database
DB = Sequel.connect('redshift://#{database-url}', options = {})
querying records
DB[:table].where('created_at > ?', Time.now - 3600)
inserting records
DB[:table].insert(key: value)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request