preset-sqlalchemy-redshift


Namepreset-sqlalchemy-redshift JSON
Version 0.8.14 PyPI version JSON
download
home_pagehttps://github.com/preset-io/preset-sqlalchemy-redshift
SummaryFork of Amazon Redshift Dialect for sqlalchemy with custom dialect suffix
upload_time2023-08-24 17:40:50
maintainerBeto Dealmeida
docs_urlNone
authorMatt George
requires_python>=3.4
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            sqlalchemy-redshift
===================

Amazon Redshift dialect for SQLAlchemy.

Installation
------------

The package is available on PyPI::

    pip install sqlalchemy-redshift

.. warning::

    This dialect requires either ``redshift_connector`` or ``psycopg2``
    to work properly. It does not provide
    it as required, but relies on you to select the distribution you need:

    * psycopg2 - standard distribution of psycopg2, requires compilation so few system dependencies are required for it
    * psycopg2-binary - already compiled distribution (no system dependencies are required)
    * psycopg2cffi - pypy compatible version

    See `Psycopg2's binary install docs <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>`_
    for more context on choosing a distribution.

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 `RedshiftDDLCompiler documentation
<https://sqlalchemy-redshift.readthedocs.org/en/latest/ddl-compiler.html>`_
for details on Redshift-specific features the dialect supports.

Running Tests
-------------
Tests are ran via tox and can be run with the following command::

    $ tox

However, this will not run integration tests unless the following
environment variables are set:

* REDSHIFT_HOST
* REDSHIFT_PORT
* REDSHIFT_USERNAME
* PGPASSWORD (this is the redshift instance password)
* REDSHIFT_DATABASE
* REDSHIFT_IAM_ROLE_ARN

Note that the IAM role specified will need to be associated with
redshift cluster and have the correct permissions to create databases
and tables as well drop them. Exporting these environment variables in
your shell and running ``tox`` will run the integration tests against
a real redshift instance. Practice caution when running these tests
against a production instance.

Continuous Integration (CI)
---------------------------

Project CI is built using AWS CodePipeline and CloudFormation. Please see the ``ci/`` folder and included ``README.txt``
for details on how to spin up the project's CI.

Releasing
---------

To perform a release, you will need to be an admin for the project on
GitHub and on PyPI. Contact the maintainers if you need that access.

You will need to have a `~/.pypirc` with your PyPI credentials and
also the following settings::

    [zest.releaser]
    create-wheels = yes

To perform a release, run the following::

    python -m venv ~/.virtualenvs/dist
    workon dist
    pip install -U pip setuptools wheel
    pip install -U tox zest.releaser
    fullrelease  # follow prompts, use semver ish with versions.

The releaser will handle updating version data on the package and in
CHANGES.rst along with tagging the repo and uploading to PyPI.


0.8.14 (2023-04-07)
-------------------

- Override new upstream postgres method that fails against redshift (`Pull #266 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/266>`_)
- Fix table reflection broken for non-superusers
  (`Pull #276 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/276>`_)
- Fix Broken Reflection for 1.4 FutureEngine
  (`Pull #277 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/277>`_)


0.8.13 (2023-03-28)
-------------------

- Add spectrum support
  (`Pull #263 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/263>`_)
- Drop support for Python 3.5


0.8.12 (2022-12-08)
-------------------

- Fix SQLAlchemy's "supports_statement_cache" (`Pull #259 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/259>`_)


0.8.11 (2022-07-27)
-------------------

- Disable redshift_connector dialect statement cache (`Pull #257 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/257>`_)


0.8.10 (2022-07-21)
-------------------

- Support HLLSKETCH Redshift datatypes
  (`Pull #246 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/246>`_)
- Disable supports_statement_cache
  (`Pull #249 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/249>`_)
- Fix doc, lint CI dependency issues
  (`Pull #250 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/250>`_)
- Fix redshift_connector dialect column encoding
  (`Pull #255 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/255>`_)

0.8.9 (2021-12-15)
------------------

- Support inspection of Redshift datatypes
  (`Pull #242 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/242>`_)


0.8.8 (2021-11-03)
------------------

- Remove support for Python 2.7; now requires python ``>=3.4``
  (`Pull #234 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/234>`_)
- Support GEOMETRY, SUPER Redshift datatypes
  (`Pull #235 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/235>`_)

0.8.7 (2021-10-27)
------------------

- Initial SQLAlchemy 2.0.x support
  (`Pull #237 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/237>`_)


0.8.6 (2021-09-22)
------------------

- Add RedshiftDialect_redshift_connector
  (`Pull #232 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/232>`_)
- Create RedshiftDialectMixin class. Add RedshiftDialect_psycopg2cffi.
  (`Pull #231 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/231>`_)


0.8.5 (2021-08-23)
------------------
- Support TIMETZ datatype
  (`Pull #229 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/229>`_)
- Fix RelationKey unquoted issue
  (`Pull #228 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/228>`_)


0.8.4 (2021-07-15)
------------------

- Improve reflection performance by fetching/caching metadata per schema
  rather than for the entire database
  (`Pull #223 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/223>`_)


0.8.3 (2021-07-07)
------------------

- SQLAlchemy 1.4.x support
  (`Pull #221 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/221>`_)


0.8.2 (2021-01-08)
------------------

- Allow supplying multiple role ARNs in COPY and UNLOAD commands. This allows
  the first role to assume other roles as explained
  `here <https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html#authorizing-redshift-service-chaining-roles>`_.


0.8.1 (2020-07-15)
------------------

- Support AWS partitions for role-based access control in COPY and UNLOAD
  commands. This allows these commands to be used, e.g. in GovCloud.


0.8.0 (2020-06-30)
------------------

- Add option to drop materialized view with CASCADE
  (`Pull #204 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/204>`_)
- Fix invalid SQLAlchemy version comparison
  (`Pull #206 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/206>`_)


0.7.9 (2020-05-29)
------------------

- Fix for supporting SQLAlchemy 1.3.11+
  (`Issue #195 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/195>`_)

0.7.8 (2020-05-27)
------------------

- Added support for materialized views
  (`Issue #202 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/202>`_)
- Fix reflection of unique constraints
  (`Issue #199 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/199>`_)
- Support for altering column comments in Alembic migrations
  (`Issue #191 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/191>`_)

0.7.7 (2020-02-02)
------------------

- Import Iterable from collections.abc for Python 3.9 compatibility
  (`Issue #189 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/189>`_)
- Add support for Parquet format in ``UNLOAD`` command
  (`Issue #187 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/187>`_)


0.7.6 (2020-01-17)
------------------

- Fix unhashable type error for sortkey reflection in SQLAlchemy >= 1.3.11
  (`Issue #180 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/180>`_)
- Expose supported types for import from the dialect
  (`Issue #181 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/181>`_)
- Reflect column comments
  (`Issue #186 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/186>`_)


0.7.5 (2019-10-09)
------------------

- Extend psycopg2 package version check to also support psycopg2-binary and psycopg2cffi
  (`Issue #178 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/178>`_)


0.7.4 (2019-10-08)
------------------

- Drop hard dependency on psycopg2 but require package to be present on runtime
  (`Issue #165 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/165>`_)
- Switch from info to keyword arguments on columns for ``SQLAlchemy >= 1.3.0``
  (`Issue #161 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/161>`_)
- Add support for column info on redshift late binding views
  (`Issue #159 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/159>`_)
- Add support for ``MAXFILESIZE`` argument to ``UNLOAD``.
  (`Issue #123 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/123>`_)
- Add support for the `CREATE LIBRARY`_ command.
  (`Issue #124 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/124>`_)
- Add support for the `ALTER TABLE APPEND`_ command.
  (`Issue #162 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/162>`_)
- Add support for the ``CSV`` format to `UnloadFromSelect`.
  (`Issue #169 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/169>`_)
- Update the list of reserved words (adds "az64" and "language")
  (`Issue #176 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/176>`_)

.. _CREATE LIBRARY: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_LIBRARY.html
.. _ALTER TABLE APPEND: https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE_APPEND.html


0.7.3 (2019-01-16)
------------------

- Add support for ``REGION`` argument to ``COPY`` and ``UNLOAD`` commands.
  (`Issue #90 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/90>`_)


0.7.2 (2018-12-11)
------------------

- Update tests to adapt to changes in Redshift and SQLAlchemy
  (`Issue #140 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/140>`_)
- Add `header` option to `UnloadFromSelect` command
  (`Issue #156 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/156>`_)
- Add support for Parquet and ORC file formats in the COPY command
  (`Issue #151 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/150>`_)
- Add official support for Python 3.7
  (`Issue #153 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/153>`_)
- Avoid manipulating search path in table metadata fetch by using system tables
  directly (`Issue #147 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/147>`_)

0.7.1 (2018-01-17)
------------------

- Fix incompatibility of reflection code with SQLAlchemy 1.2.0+
  (`Issue #138 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/138>`_)


0.7.0 (2017-10-03)
------------------

- Do not enumerate `search_path` with external schemas (`Issue #120
  <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/120>`_)
- Return constraint name from get_pk_constraint and get_foreign_keys
- Use Enums for Format, Compression and Encoding.
  Deprecate string parameters for these parameter types
  (`Issue #133 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/133>`_)
- Update included certificate with the `transitional ACM cert bundle
  <https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-transitioning-to-acm-certs.html>`_
  (`Issue #130 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/130>`_)


0.6.0 (2017-05-04)
------------------

- Support role-based access control in COPY and UNLOAD commands
  (`Issue #88 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/88>`_)
- Increase max_identifier_length to 127 characters
  (`Issue #96 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/96>`_)
- Fix a bug where table names containing a period caused an error on reflection
  (`Issue #97 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/97>`_)
- Performance improvement for reflection by caching table constraint info
  (`Issue #101 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/101>`_)
- Support BZIP2 compression in COPY command
  (`Issue #110 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/110>`_)
- Allow tests to tolerate new default column encodings in Redshift
  (`Issue #114 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/114>`_)
- Pull in set of reserved words from Redshift docs
  (`Issue #94 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/94>` _)


0.5.0 (2016-04-21)
------------------

- Support reflecting tables with foriegn keys to tables in non-public schemas
  (`Issue #70 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/70>`_)
- Fix a bug where DISTKEY and SORTKEY could not be used on column names containing
  spaces or commas. This is a breaking behavioral change for a command like
  `__table_args__ = {'redshift_sortkey': ('foo, bar')}`. Previously, this would sort
  on the columns named `foo` and `bar`. Now, it sorts on the column named `foo, bar`.
  (`Issue #74 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/74>`_)


0.4.0 (2015-11-17)
------------------

- Change the name of the package to `sqlalchemy_redshift` to match the naming
  convention for other dialects; the `redshift_sqlalchemy` package now emits
  a `DeprecationWarning` and references `sqlalchemy_redshift`.
  The `redshift_sqlalchemy` compatibility package will be removed
  in a future release.
  (`Issue #58 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/58>`_)
- Fix a bug where reflected tables could have incorrect column order for some
  `CREATE TABLE` statements, particularly for columns with an `IDENTITY`
  constraint.
  (`Issue #60 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/60>`_)
- Fix a bug where reflecting a table could raise a ``NoSuchTableError``
  in cases where its schema is not on the current ``search_path``
  (`Issue #64 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/64>`_)
- Add python 3.5 to the list of versions for integration tests.
  (`Issue #61 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/61>`_)


0.3.1 (2015-10-08)
------------------

- Fix breakages to CopyCommand introduced in 0.3.0:
  Thanks `solackerman <https://github.com/solackerman>`_.
  (`Issue #53 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/53>`_)

  - When `format` is omitted, no `FORMAT AS ...` is appended to the query. This
    makes the default the same as a normal redshift query.
  - fix STATUPDATE as a COPY parameter


0.3.0 (2015-09-29)
------------------

- Fix view support to be more in line with SQLAlchemy standards.
  `get_view_definition` output no longer includes a trailing semicolon and
  views no longer raise an exception when reflected as `Table` objects.
  (`Issue #46 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/46>`_)
- Rename RedShiftDDLCompiler to RedshiftDDLCompiler.
  (`Issue #43 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/43>`_)
- Update commands
  (`Issue #52 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/52>`_)

  - Expose optional TRUNCATECOLUMNS in CopyCommand.
  - Add all other COPY parameters to CopyCommand.
  - Move commands to their own module.
  - Support inserts into ordered columns in CopyCommand.


0.2.0 (2015-09-04)
------------------

- Use SYSDATE instead of NOW().
  Thanks `bouk <https://github.com/bouk>`_.
  (`Issue #15 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/15>`_)
- Default to SSL with hardcoded AWS Redshift CA.
  (`Issue #20 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/20>`_)
- Refactor of CopyCommand including support for specifying format and
  compression type. (`Issue #21 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/21>`_)
- Explicitly require SQLAlchemy >= 0.9.2 for 'dialect_options'.
  (`Issue #13 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/13>`_)
- Refactor of UnloadFromSelect including support for specifying all documented
  redshift options.
  (`Issue #27 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/27>`_)
- Fix unicode issue with SORTKEY on python 2.
  (`Issue #34 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/34>`_)
- Add support for Redshift ``DELETE`` statements that refer other tables in
  the ``WHERE`` clause.
  Thanks `haleemur <https://github.com/haleemur>`_.
  (`Issue #35 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/35>`_)
- Raise ``NoSuchTableError`` when trying to reflect a table that doesn't exist.
  (`Issue #38 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/38>`_)

0.1.2 (2015-08-11)
------------------

- Register postgresql.visit_rename_table for redshift's
  alembic RenameTable.
  Thanks `bouk <https://github.com/bouk>`_.
  (`Issue #7 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/preset-io/preset-sqlalchemy-redshift",
    "name": "preset-sqlalchemy-redshift",
    "maintainer": "Beto Dealmeida",
    "docs_url": null,
    "requires_python": ">=3.4",
    "maintainer_email": "beto@preset.io",
    "keywords": "",
    "author": "Matt George",
    "author_email": "mgeorge@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/3e/0d/5f9848e9ed9eb22d358f06b817c239d36ea4c74349c0ab445fb158df3016/preset-sqlalchemy-redshift-0.8.14.tar.gz",
    "platform": null,
    "description": "sqlalchemy-redshift\n===================\n\nAmazon Redshift dialect for SQLAlchemy.\n\nInstallation\n------------\n\nThe package is available on PyPI::\n\n    pip install sqlalchemy-redshift\n\n.. warning::\n\n    This dialect requires either ``redshift_connector`` or ``psycopg2``\n    to work properly. It does not provide\n    it as required, but relies on you to select the distribution you need:\n\n    * psycopg2 - standard distribution of psycopg2, requires compilation so few system dependencies are required for it\n    * psycopg2-binary - already compiled distribution (no system dependencies are required)\n    * psycopg2cffi - pypy compatible version\n\n    See `Psycopg2's binary install docs <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>`_\n    for more context on choosing a distribution.\n\nUsage\n-----\nThe DSN format is similar to that of regular Postgres::\n\n    >>> import sqlalchemy as sa\n    >>> sa.create_engine('redshift+psycopg2://username@host.amazonaws.com:5439/database')\n    Engine(redshift+psycopg2://username@host.amazonaws.com:5439/database)\n\nSee the `RedshiftDDLCompiler documentation\n<https://sqlalchemy-redshift.readthedocs.org/en/latest/ddl-compiler.html>`_\nfor details on Redshift-specific features the dialect supports.\n\nRunning Tests\n-------------\nTests are ran via tox and can be run with the following command::\n\n    $ tox\n\nHowever, this will not run integration tests unless the following\nenvironment variables are set:\n\n* REDSHIFT_HOST\n* REDSHIFT_PORT\n* REDSHIFT_USERNAME\n* PGPASSWORD (this is the redshift instance password)\n* REDSHIFT_DATABASE\n* REDSHIFT_IAM_ROLE_ARN\n\nNote that the IAM role specified will need to be associated with\nredshift cluster and have the correct permissions to create databases\nand tables as well drop them. Exporting these environment variables in\nyour shell and running ``tox`` will run the integration tests against\na real redshift instance. Practice caution when running these tests\nagainst a production instance.\n\nContinuous Integration (CI)\n---------------------------\n\nProject CI is built using AWS CodePipeline and CloudFormation. Please see the ``ci/`` folder and included ``README.txt``\nfor details on how to spin up the project's CI.\n\nReleasing\n---------\n\nTo perform a release, you will need to be an admin for the project on\nGitHub and on PyPI. Contact the maintainers if you need that access.\n\nYou will need to have a `~/.pypirc` with your PyPI credentials and\nalso the following settings::\n\n    [zest.releaser]\n    create-wheels = yes\n\nTo perform a release, run the following::\n\n    python -m venv ~/.virtualenvs/dist\n    workon dist\n    pip install -U pip setuptools wheel\n    pip install -U tox zest.releaser\n    fullrelease  # follow prompts, use semver ish with versions.\n\nThe releaser will handle updating version data on the package and in\nCHANGES.rst along with tagging the repo and uploading to PyPI.\n\n\n0.8.14 (2023-04-07)\n-------------------\n\n- Override new upstream postgres method that fails against redshift (`Pull #266 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/266>`_)\n- Fix table reflection broken for non-superusers\n  (`Pull #276 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/276>`_)\n- Fix Broken Reflection for 1.4 FutureEngine\n  (`Pull #277 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/277>`_)\n\n\n0.8.13 (2023-03-28)\n-------------------\n\n- Add spectrum support\n  (`Pull #263 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/263>`_)\n- Drop support for Python 3.5\n\n\n0.8.12 (2022-12-08)\n-------------------\n\n- Fix SQLAlchemy's \"supports_statement_cache\" (`Pull #259 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/259>`_)\n\n\n0.8.11 (2022-07-27)\n-------------------\n\n- Disable redshift_connector dialect statement cache (`Pull #257 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/257>`_)\n\n\n0.8.10 (2022-07-21)\n-------------------\n\n- Support HLLSKETCH Redshift datatypes\n  (`Pull #246 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/246>`_)\n- Disable supports_statement_cache\n  (`Pull #249 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/249>`_)\n- Fix doc, lint CI dependency issues\n  (`Pull #250 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/250>`_)\n- Fix redshift_connector dialect column encoding\n  (`Pull #255 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/255>`_)\n\n0.8.9 (2021-12-15)\n------------------\n\n- Support inspection of Redshift datatypes\n  (`Pull #242 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/242>`_)\n\n\n0.8.8 (2021-11-03)\n------------------\n\n- Remove support for Python 2.7; now requires python ``>=3.4``\n  (`Pull #234 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/234>`_)\n- Support GEOMETRY, SUPER Redshift datatypes\n  (`Pull #235 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/235>`_)\n\n0.8.7 (2021-10-27)\n------------------\n\n- Initial SQLAlchemy 2.0.x support\n  (`Pull #237 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/237>`_)\n\n\n0.8.6 (2021-09-22)\n------------------\n\n- Add RedshiftDialect_redshift_connector\n  (`Pull #232 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/232>`_)\n- Create RedshiftDialectMixin class. Add RedshiftDialect_psycopg2cffi.\n  (`Pull #231 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/231>`_)\n\n\n0.8.5 (2021-08-23)\n------------------\n- Support TIMETZ datatype\n  (`Pull #229 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/229>`_)\n- Fix RelationKey unquoted issue\n  (`Pull #228 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/228>`_)\n\n\n0.8.4 (2021-07-15)\n------------------\n\n- Improve reflection performance by fetching/caching metadata per schema\n  rather than for the entire database\n  (`Pull #223 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/223>`_)\n\n\n0.8.3 (2021-07-07)\n------------------\n\n- SQLAlchemy 1.4.x support\n  (`Pull #221 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/221>`_)\n\n\n0.8.2 (2021-01-08)\n------------------\n\n- Allow supplying multiple role ARNs in COPY and UNLOAD commands. This allows\n  the first role to assume other roles as explained\n  `here <https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-redshift-service.html#authorizing-redshift-service-chaining-roles>`_.\n\n\n0.8.1 (2020-07-15)\n------------------\n\n- Support AWS partitions for role-based access control in COPY and UNLOAD\n  commands. This allows these commands to be used, e.g. in GovCloud.\n\n\n0.8.0 (2020-06-30)\n------------------\n\n- Add option to drop materialized view with CASCADE\n  (`Pull #204 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/204>`_)\n- Fix invalid SQLAlchemy version comparison\n  (`Pull #206 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/206>`_)\n\n\n0.7.9 (2020-05-29)\n------------------\n\n- Fix for supporting SQLAlchemy 1.3.11+\n  (`Issue #195 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/195>`_)\n\n0.7.8 (2020-05-27)\n------------------\n\n- Added support for materialized views\n  (`Issue #202 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/202>`_)\n- Fix reflection of unique constraints\n  (`Issue #199 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/199>`_)\n- Support for altering column comments in Alembic migrations\n  (`Issue #191 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/191>`_)\n\n0.7.7 (2020-02-02)\n------------------\n\n- Import Iterable from collections.abc for Python 3.9 compatibility\n  (`Issue #189 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/189>`_)\n- Add support for Parquet format in ``UNLOAD`` command\n  (`Issue #187 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/187>`_)\n\n\n0.7.6 (2020-01-17)\n------------------\n\n- Fix unhashable type error for sortkey reflection in SQLAlchemy >= 1.3.11\n  (`Issue #180 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/180>`_)\n- Expose supported types for import from the dialect\n  (`Issue #181 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/181>`_)\n- Reflect column comments\n  (`Issue #186 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/186>`_)\n\n\n0.7.5 (2019-10-09)\n------------------\n\n- Extend psycopg2 package version check to also support psycopg2-binary and psycopg2cffi\n  (`Issue #178 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/178>`_)\n\n\n0.7.4 (2019-10-08)\n------------------\n\n- Drop hard dependency on psycopg2 but require package to be present on runtime\n  (`Issue #165 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/165>`_)\n- Switch from info to keyword arguments on columns for ``SQLAlchemy >= 1.3.0``\n  (`Issue #161 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/161>`_)\n- Add support for column info on redshift late binding views\n  (`Issue #159 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/159>`_)\n- Add support for ``MAXFILESIZE`` argument to ``UNLOAD``.\n  (`Issue #123 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/123>`_)\n- Add support for the `CREATE LIBRARY`_ command.\n  (`Issue #124 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/124>`_)\n- Add support for the `ALTER TABLE APPEND`_ command.\n  (`Issue #162 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/162>`_)\n- Add support for the ``CSV`` format to `UnloadFromSelect`.\n  (`Issue #169 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/169>`_)\n- Update the list of reserved words (adds \"az64\" and \"language\")\n  (`Issue #176 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/176>`_)\n\n.. _CREATE LIBRARY: https://docs.aws.amazon.com/redshift/latest/dg/r_CREATE_LIBRARY.html\n.. _ALTER TABLE APPEND: https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE_APPEND.html\n\n\n0.7.3 (2019-01-16)\n------------------\n\n- Add support for ``REGION`` argument to ``COPY`` and ``UNLOAD`` commands.\n  (`Issue #90 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/90>`_)\n\n\n0.7.2 (2018-12-11)\n------------------\n\n- Update tests to adapt to changes in Redshift and SQLAlchemy\n  (`Issue #140 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/140>`_)\n- Add `header` option to `UnloadFromSelect` command\n  (`Issue #156 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/156>`_)\n- Add support for Parquet and ORC file formats in the COPY command\n  (`Issue #151 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/150>`_)\n- Add official support for Python 3.7\n  (`Issue #153 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/153>`_)\n- Avoid manipulating search path in table metadata fetch by using system tables\n  directly (`Issue #147 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/147>`_)\n\n0.7.1 (2018-01-17)\n------------------\n\n- Fix incompatibility of reflection code with SQLAlchemy 1.2.0+\n  (`Issue #138 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/138>`_)\n\n\n0.7.0 (2017-10-03)\n------------------\n\n- Do not enumerate `search_path` with external schemas (`Issue #120\n  <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/120>`_)\n- Return constraint name from get_pk_constraint and get_foreign_keys\n- Use Enums for Format, Compression and Encoding.\n  Deprecate string parameters for these parameter types\n  (`Issue #133 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/133>`_)\n- Update included certificate with the `transitional ACM cert bundle\n  <https://docs.aws.amazon.com/redshift/latest/mgmt/connecting-transitioning-to-acm-certs.html>`_\n  (`Issue #130 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/130>`_)\n\n\n0.6.0 (2017-05-04)\n------------------\n\n- Support role-based access control in COPY and UNLOAD commands\n  (`Issue #88 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/88>`_)\n- Increase max_identifier_length to 127 characters\n  (`Issue #96 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/96>`_)\n- Fix a bug where table names containing a period caused an error on reflection\n  (`Issue #97 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/97>`_)\n- Performance improvement for reflection by caching table constraint info\n  (`Issue #101 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/101>`_)\n- Support BZIP2 compression in COPY command\n  (`Issue #110 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/110>`_)\n- Allow tests to tolerate new default column encodings in Redshift\n  (`Issue #114 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/114>`_)\n- Pull in set of reserved words from Redshift docs\n  (`Issue #94 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/94>` _)\n\n\n0.5.0 (2016-04-21)\n------------------\n\n- Support reflecting tables with foriegn keys to tables in non-public schemas\n  (`Issue #70 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/70>`_)\n- Fix a bug where DISTKEY and SORTKEY could not be used on column names containing\n  spaces or commas. This is a breaking behavioral change for a command like\n  `__table_args__ = {'redshift_sortkey': ('foo, bar')}`. Previously, this would sort\n  on the columns named `foo` and `bar`. Now, it sorts on the column named `foo, bar`.\n  (`Issue #74 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/74>`_)\n\n\n0.4.0 (2015-11-17)\n------------------\n\n- Change the name of the package to `sqlalchemy_redshift` to match the naming\n  convention for other dialects; the `redshift_sqlalchemy` package now emits\n  a `DeprecationWarning` and references `sqlalchemy_redshift`.\n  The `redshift_sqlalchemy` compatibility package will be removed\n  in a future release.\n  (`Issue #58 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/58>`_)\n- Fix a bug where reflected tables could have incorrect column order for some\n  `CREATE TABLE` statements, particularly for columns with an `IDENTITY`\n  constraint.\n  (`Issue #60 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/60>`_)\n- Fix a bug where reflecting a table could raise a ``NoSuchTableError``\n  in cases where its schema is not on the current ``search_path``\n  (`Issue #64 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/64>`_)\n- Add python 3.5 to the list of versions for integration tests.\n  (`Issue #61 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/61>`_)\n\n\n0.3.1 (2015-10-08)\n------------------\n\n- Fix breakages to CopyCommand introduced in 0.3.0:\n  Thanks `solackerman <https://github.com/solackerman>`_.\n  (`Issue #53 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/53>`_)\n\n  - When `format` is omitted, no `FORMAT AS ...` is appended to the query. This\n    makes the default the same as a normal redshift query.\n  - fix STATUPDATE as a COPY parameter\n\n\n0.3.0 (2015-09-29)\n------------------\n\n- Fix view support to be more in line with SQLAlchemy standards.\n  `get_view_definition` output no longer includes a trailing semicolon and\n  views no longer raise an exception when reflected as `Table` objects.\n  (`Issue #46 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/46>`_)\n- Rename RedShiftDDLCompiler to RedshiftDDLCompiler.\n  (`Issue #43 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/43>`_)\n- Update commands\n  (`Issue #52 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/52>`_)\n\n  - Expose optional TRUNCATECOLUMNS in CopyCommand.\n  - Add all other COPY parameters to CopyCommand.\n  - Move commands to their own module.\n  - Support inserts into ordered columns in CopyCommand.\n\n\n0.2.0 (2015-09-04)\n------------------\n\n- Use SYSDATE instead of NOW().\n  Thanks `bouk <https://github.com/bouk>`_.\n  (`Issue #15 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/15>`_)\n- Default to SSL with hardcoded AWS Redshift CA.\n  (`Issue #20 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/20>`_)\n- Refactor of CopyCommand including support for specifying format and\n  compression type. (`Issue #21 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/21>`_)\n- Explicitly require SQLAlchemy >= 0.9.2 for 'dialect_options'.\n  (`Issue #13 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/13>`_)\n- Refactor of UnloadFromSelect including support for specifying all documented\n  redshift options.\n  (`Issue #27 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/27>`_)\n- Fix unicode issue with SORTKEY on python 2.\n  (`Issue #34 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/34>`_)\n- Add support for Redshift ``DELETE`` statements that refer other tables in\n  the ``WHERE`` clause.\n  Thanks `haleemur <https://github.com/haleemur>`_.\n  (`Issue #35 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/35>`_)\n- Raise ``NoSuchTableError`` when trying to reflect a table that doesn't exist.\n  (`Issue #38 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/issues/38>`_)\n\n0.1.2 (2015-08-11)\n------------------\n\n- Register postgresql.visit_rename_table for redshift's\n  alembic RenameTable.\n  Thanks `bouk <https://github.com/bouk>`_.\n  (`Issue #7 <https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/pull/7>`_)\n\n\n0.1.1 (2015-05-20)\n------------------\n\n- Register RedshiftImpl as an alembic 3rd party dialect.\n\n\n0.1.0 (2015-05-11)\n------------------\n\n- First version of sqlalchemy-redshift that can be installed from PyPI\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Fork of Amazon Redshift Dialect for sqlalchemy with custom dialect suffix",
    "version": "0.8.14",
    "project_urls": {
        "Homepage": "https://github.com/preset-io/preset-sqlalchemy-redshift"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e0d5f9848e9ed9eb22d358f06b817c239d36ea4c74349c0ab445fb158df3016",
                "md5": "704c7fdac368584858c1293d4d623b0d",
                "sha256": "6ebbb015f55db870a9de60ede56611ecba28afd9a37bfc4089a553a63c1235b4"
            },
            "downloads": -1,
            "filename": "preset-sqlalchemy-redshift-0.8.14.tar.gz",
            "has_sig": false,
            "md5_digest": "704c7fdac368584858c1293d4d623b0d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.4",
            "size": 37866,
            "upload_time": "2023-08-24T17:40:50",
            "upload_time_iso_8601": "2023-08-24T17:40:50.263060Z",
            "url": "https://files.pythonhosted.org/packages/3e/0d/5f9848e9ed9eb22d358f06b817c239d36ea4c74349c0ab445fb158df3016/preset-sqlalchemy-redshift-0.8.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-24 17:40:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "preset-io",
    "github_project": "preset-sqlalchemy-redshift",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "preset-sqlalchemy-redshift"
}
        
Elapsed time: 0.52211s