No commit activity in last 3 years
No release in over 3 years
Rails 5 Amazon Redshift adapter based on built-in postgresql adapter.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.18
 Project Readme

redshift-on-postgres-adapter

In Rails 5 the PostgreSQL database adapter is built in. This gem tries to use that as a base and modify just enough things to talk to Amazon Redshift.

Examples

class AddNewColumn < ActiveRecord::Migration[5.0]
  def change
    add_column :my_table, :new_col, :int, null: false, default: 0, encode: :runlength
  end
end

Tested

  • Table loading
  • Adding, removing records
  • Drop tables
  • Migrations
  • Column encoding support.
  • DISTKEY and SORTKEY

TODO

  • Schema dumping with .rb with correct encoding and key signature.

Changes

0.2.0:

  • Support column options of :distkey, :sortkey, and :encode

0.1.1:

  • Support auto incrementing primary keys in DB creation

0.1.0:

  • Original Version