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.
- Host: GitHub
- URL: https://github.com/fdeschenes/activerecord-amazon-timestream-adapter
- Owner: fdeschenes
- License: mit
- Created: 2020-11-12T15:19:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-17T11:55:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T14:18:22.255Z (over 1 year ago)
- Topics: activerecord, activerecord-adapter, arel, aws, aws-timestream, ruby, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 32.2 KB
- Stars: 9
- Watchers: 3
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: MIT-LICENSE
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
```