freddy-dev / redshift-adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redshift-adapter

Amazon Redshift adapter for ActiveRecord 7 (Rails 7). I cloned the project from ConsultingMD/activerecord5-redshift-adapter.

The Redshift driver for previous ActiveRecord versions already exist: ActiveRecord5: https://github.com/ConsultingMD/activerecord5-redshift-adapter ActiveRecord4: https://github.com/aamine/activerecord4-redshift-adapter ActiveRecord3: https://github.com/fiksu/activerecord-redshift-adapter

There are some differences for AR6, and this driver tries to stay compatible with those.

If anybody writes a better Redshift driver which works with ActiveRecord 7, and maintains it, we would happily switch to that.

Usage

For Rails 7, write following in Gemfile:

gem 'redshift-adapter'

In database.yml

development:
  adapter: redshift
  host: your_cluster_name.at.redshift.amazonaws.com
  port: 5439
  database: your_db
  username: your_user
  password: your_password
  encoding: utf8
  pool: 3
  timeout: 5000

License

MIT license (same as ActiveRecord)

About

License:Other


Languages

Language:Ruby 100.0%