Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 8 Support #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# ActiveRecord Amazon Timestream Adapter

This is the ActiveRecord adapter for working with [Amazon Timestream](https://aws.amazon.com/timestream/).

## Usage

```yaml
# database.yml
development:
timestream:
adapter: amazon_timestream
database: events
database_tasks: false
```

```ruby
# app/models/application_timestream_record.rb
class ApplicationTimestreamRecord < ActiveRecord::Base
self.abstract_class = true
connects_to database: { writing: :timestream, reading: :timestream }
end
```

```ruby
# app/models/event.rb
class Event < ApplicationTimestreamRecord
end
```
4 changes: 2 additions & 2 deletions activerecord-amazon-timestream-adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = 'activerecord-amazon-timestream-adapter'
s.version = '0.0.7'
s.version = '0.0.8'
s.author = 'Francois Deschenes'
s.email = '[email protected]'
s.summary = 'ActiveRecord Amazon Timestream Adapter'
Expand All @@ -16,7 +16,7 @@ Gem::Specification.new do |s|

s.add_development_dependency 'bundler', '>= 2.2.33'

s.add_dependency 'activerecord', '>= 4.2', '< 7.3'
s.add_dependency 'activerecord', '>= 4.2', '< 8.1'
s.add_dependency 'aws-sdk-core', '~> 3.0'
s.add_dependency 'aws-sdk-timestreamquery', '~> 1.0'
end