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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

Details for the file sqlalchemy-redshift-0.2.0.tar.gz.

File metadata

File hashes

Hashes for sqlalchemy-redshift-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8f06530faf772b51b1ddb1331e3d9d57895bc364c63fe72105e93fc53f7d9cc0
MD5 8ceddec5de1c3d1de1ed40bf372b5734
BLAKE2b-256 5dd8e6571c2ac0f73c77d277ac87a049fa60d58a4d02cf54ff0fc6974b6fa08f

See more details on using hashes here.

File details

Details for the file sqlalchemy_redshift-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sqlalchemy_redshift-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce6092a29390d6089370e0c5479f446461c9b92e4ecaffd43680944bcf111390
MD5 f2b170a0b58dd9f807caf31e126718cd
BLAKE2b-256 29d7233ad7a29a700b5576e512cd97cb7b47ce74e848388a2399cf70c8efb3d2

See more details on using hashes here.

Supported by

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