Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 641 Bytes

README.rst

File metadata and controls

24 lines (16 loc) · 641 Bytes

redshift_sqlalchemy

Amazon Redshift dialect for SQLAlchemy.

https://travis-ci.org/graingert/redshift_sqlalchemy.png?branch=master

Installation

The package is available on PyPI:

pip install sqlalchemy-redshift

Usage

The DSN format is similar to that of regular Postgres:

>>> import sqlalchemy as sa
>>> sa.create_engine('redshift+psycopg2://[email protected]:5439/database')
Engine(redshift+psycopg2://[email protected]:5439/database)

See the docstring for RedshiftDDLCompiler in dialect.py for more detail.