Skip to main content

Redshift database backend for Django

Project description

This is a Amazon Redshift database backend for Django.

Jazzband Read the Docs (master) PyPI PyPI - Python Version PyPI - Django Version License GitHub Actions Coverage GitHub stars

Documentation

Django settings

ENGINE for DATABASES is ‘django_redshift_backend’. You can set the name in your settings.py as:

DATABASES = {
    'default': {
        'ENGINE': 'django_redshift_backend',
        'NAME': '<your database name>',
        'USER': '<your database username>',
        'PASSWORD': '<your database password>',
        'HOST': '<your database hostname>',
        'PORT': '5439',
    }
}

For more information, please refer: Documentation

LICENSE

Apache Software License

CHANGES

2.1.0 (2021/09/23)

General:

  • #76 fix test failing on django-dev with py36,py37

  • #77 Mondernize setup.cfg and pyproject.toml

Bug Fixes:

  • #80 uuid field doesn’t work correctly with django 2.x and 3.x. Thanks to xavier-lr.

Features:

  • #81 Add Django 3.2 support.

2.0.1 (2021/03/07)

Bug Fixes:

  • #74: set supports_aggregate_filter_clause=False (since Django-2.0) to disable FILTER WHERE syntax. Thanks to Michael Wheeler.

  • #73: fix broken feature flags since Django-3.0: can_return_columns_from_insert and can_return_rows_from_bulk_insert. Thanks to Agustín Magaña.

2.0.0 (2021/01/04)

General:

Features:

  • Drop Python 2.7 and 3.5 support.

  • Drop Django 1.11, 2.0 and 2.1 support.

  • #68 Add Python 3.8 and 3.9 support.

  • #68 Add Django 3.0 and 3.1 support.

Bug Fixes:

  • #69 Let users choose between psycopg2 binary or source. Thkanks to Bruno Alla.

  • #65,#66 Deprecation warning due to invalid escape sequences. Thanks to Karthikeyan Singaravelan.

Documentation:

  • #67 Just a typo cleanup from refs.rst. Thanks to Kostja P.

1.1.0 (2019/08/02)

  • #60 Change dependencies to support Python 3.7 Thanks to Asher Foa.

1.0.0 (2019/01/29)

General:

  • The first release from Jazzband organization.

  • Using Development Status :: 5 - Production/Stable.

  • All GitHub/Travis/other URLs in this product has been migrated to /jazzband/.

New Features:

  • #56 Support Django 2.1.

  • #57 Support Python 3.7

Bug Fixes:

  • #53,#54: UUIDField django model field will cause clash. Thanks to Corentin Dupret.

Development:

  • Adopt setuptools_scm for versioning from git tag.

0.9.1 (2018-09-29)

0.9 (2018-07-24)

  • #35: Drop support for Django 1.8, 1.9 and 1.10.

  • #40: Support Django 2.0.

  • #42: Support DISTKEY. Thanks to Benjy Weinberger.

  • Documentation: http://django-redshift-backend.rtfd.io/

  • Change LICENSE from ‘BSD License’ to ‘Apache Software License’

0.8.1 (2018-06-19)

  • #38: Fix 0.8 doesn’t compatible with Python 2. Thanks to Benjy Weinberger.

0.8 (2018-06-01)

Incompatible Changes:

  • #23,#10: Redshift support time zones in time stamps for migration

    IMPORTANT: With this change, the newly created DateTimeField column will be timestamp with timezone (TIMESTAMPTZ) by migration. Therefore, the existing DateTimeField and the new DateTimeField will have different data types as a redshift schema column type. There are no migration feature by django-redshift-backend. see also: https://github.com/jazzband/django-redshift-backend/pull/23

New Features:

  • #20,#26: Support for sortkey. Thanks to Maxime Vdb and Kosei Kitahara.

  • #24: Add UUIDField support. Thanks to Sindri Guðmundsson.

  • #14: More compat with redshift: not use SELECT DISTINCT ON.

Bug Fixes:

  • #15,#21: More compat with redshift: not use CHECK. Thanks to Vasil Vangelovski.

  • #18: Fix error on migration with django-1.9 or later that raises AttributeError of ‘sql_create_table_unique’.

  • #27: annotate() does not work on Django-1.9 and later. Thanks to Takayuki Hirai.

Documentation:

0.7 (2017-06-08)

  • Drop Python-3.4

  • Drop Django-1.7

  • Support Python-3.6

  • Support Django-1.11

0.6 (2016-12-15)

  • Fix crush problem when using bulk insert.

0.5 (2016-10-05)

  • Support Django-1.10

  • #9: Add support for BigAutoField. Thanks to Maxime Vdb.

  • Fix crush problem on sqlmigrate when field modified.

0.4 (2016-05-17)

  • Support Python-3.4 and 3.5

  • #7: Restore support django-1.7. Version 0.3 doesn’t support django-1.7.

  • #4: More compat with redshift: not use SET CONSTRAINTS. Thanks to Maxime Vdb.

  • #6: More compat with redshift: not use sequence reset query. Thanks to Maxime Vdb.

  • #5: Add REDSHIFT_VARCHAR_LENGTH_MULTIPLIER settings. Thanks to Maxime Vdb.

  • Support column type changing on migration.

0.3 (2016-05-14)

  • #3: more compat with Redshift (AutoField, DateTimeField, Index). Thanks to Maxime Vdb.

  • More compat with redshift: add TextField

  • More compat with redshift: not use DEFERRABLE, CONSTRAINT, DROP DEFAULT

  • More compat with redshift: support modify column

0.2.1 (2016-02-01)

  • “SET TIME_ZONE” warning is changed as debug log for ‘django.db.backend’ logger.

0.2 (2016-01-08)

  • Disable “SET TIME_ZONE” SQL execution even if settings.TIME_ZONE is specified.

0.1.2 (2015-06-5)

  • Support Django-1.8

0.1.1 (2015-03-27)

  • Disable “SELECT FOR UPDATE” SQL execution.

0.1 (2015-03-24)

  • Support Django-1.7

  • Support “INSERT INTO” SQL execution without “RETURNING” clause.

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

django-redshift-backend-2.1.0.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

django_redshift_backend-2.1.0-py2.py3-none-any.whl (15.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-redshift-backend-2.1.0.tar.gz.

File metadata

  • Download URL: django-redshift-backend-2.1.0.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for django-redshift-backend-2.1.0.tar.gz
Algorithm Hash digest
SHA256 c0425d49f6d928aed8e9291bc04ddb4d5d73ef33e70cb9f643b5a8b2bc936330
MD5 7c1dd43ee6f40097e39c86ddde126ca1
BLAKE2b-256 84623d3c617dbc26766b519d4d7d283118b78436ba52d861445d988510f7c778

See more details on using hashes here.

File details

Details for the file django_redshift_backend-2.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_redshift_backend-2.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for django_redshift_backend-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 371c8ff2dd3d4721e8a834d3d875dfae047c25d03eee2ddd377df9f6f1d4b69a
MD5 80cff2452f8e03a5376a0221ee662d54
BLAKE2b-256 3209608330251e21b29c586c1d9969204ecb10d980636645358875aa095ccaf0

See more details on using hashes here.

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