Skip to content

qen/activerecord-redshift-adapter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activerecord-redshift-adapter

adapter for aws redshift for rails 3

ripped from rails 3 postgresql -- deleted code until it worked

barely tested (I'm working on a project that needs this -- this works as much as I need to get the project moving)

good luck

example database.yml

common: &common
  adapter: postgresql
  username: postgres
  encoding: SQL_ASCII
  template: template0
  pool: 5
  timeout: 5000

redshiftdb: &redshiftdb
  adapter: redshift
  host: clustername.something.us-east-1.redshift.amazonaws.com
  database: databasename
  port: 5439
  username: username
  password: password

redshift_development:
  <<: *common
  <<: *redshiftdb
  database: databasename

options

option description
schema_search_path set schema_search_path. use default value if not given.
read_timezone force timezone for datetime when select values. ActiveRecord default timezone will set if not given.

About

aws redshift adapter for rails 3 -- ripped from postgresql adapter -- barely tested

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%