An open API service indexing awesome lists of open source software.

https://github.com/fdeschenes/activerecord-amazon-timestream-adapter

🚧 Pre-release 🚧 – This is the ActiveRecord adapter for working with Amazon Timestream.
https://github.com/fdeschenes/activerecord-amazon-timestream-adapter

activerecord activerecord-adapter arel aws aws-timestream ruby ruby-on-rails

Last synced: 3 months ago
JSON representation

🚧 Pre-release 🚧 – This is the ActiveRecord adapter for working with Amazon Timestream.

Awesome Lists containing this project

README

          

# 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
```