Skip to main content

Amazon Redshift Dialect for sqlalchemy

Project description

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://username@host.amazonaws.com:5439/database')
Engine(redshift+psycopg2://username@host.amazonaws.com:5439/database)

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

0.2.0 (2015-09-04)

  • Use SYSDATE instead of NOW(). Thanks bouk. (Issue #15)

  • Default to SSL with hardcoded AWS Redshift CA. (Issue #20)

  • Refactor of CopyCommand including support for specifying format and compression type. (Issue #21)

  • Explicitly require SQLAlchemy >= 0.9.2 for ‘dialect_options’. (Issue #13)

  • Refactor of UnloadFromSelect including support for specifying all documented redshift options. (Issue #27)

  • Fix unicode issue with SORTKEY on python 2. (Issue #34)

  • Add support for Redshift DELETE statements that refer other tables in the WHERE clause. (Issue #35). Thanks haleemur <https://github.com/haleemur> _.

  • Raise NoSuchTableError when trying to reflect a table that doesn’t exist. (Issue #38).

0.1.2 (2015-08-11)

  • Register postgresql.visit_rename_table for redshift’s alembic RenameTable. Thanks bouk. (Issue #7)

0.1.1 (2015-05-20)

  • Register RedshiftImpl as an alembic 3rd party dialect.

0.1.0 (2015-05-11)

  • First version of sqlalchemy-redshift that can be installed from PyPI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-redshift-0.2.0.tar.gz (14.6 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_redshift-0.2.0-py2.py3-none-any.whl (16.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page