Amazon Redshift dialect for SQLAlchemy.
- psycopg2 >= 2.5
- SQLAlchemy 0.8
The DSN format is similar to that of regular Postgres:
>>> import sqlalchemy as sa >>> sa.create_engine('redshift+psycopg2://username@host.amazonaws.com:5439/database') Engine(redshift+psycopg2://username@host.amazonaws.com:5439/database)
Currently, constraints and indexes return nothing when introspecting tables. This is because Redshift implements version 8.0 of the PostgreSQL API.