Django-pgbulk

Latest version: v3.2.0

Safety actively analyzes 688735 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

3.2.0

Changes

- Added Python 3.13 support, dropped Python 3.8. Added Postgres17 support by [wesleykendall](https://github.com/wesleykendall) in [#49](https://github.com/Opus10/django-pgbulk/pull/49).

3.1.0

Feature

- Add support for db defaults in `pgbulk.upsert` by [max-muoto](https://github.com/max-muoto) in [#42](https://github.com/Opus10/django-pgbulk/pull/42).
- Support binary mode for `pgbulk.copy` by [max-muoto](https://github.com/max-muoto) in [#45](https://github.com/Opus10/django-pgbulk/pull/45)

3.0.2

Trivial

- Remove elipses defaults on overloads to avoid incorrect resolution by [max-muoto](https://github.com/max-muoto) in [#41](https://github.com/Opus10/django-pgbulk/pull/41/).

3.0.1

Trivial

- Add overloads on `upsert`, `aupsert`, `update`, and `aupdate` to improve type-checking on `returning=...` by [max-muoto](https://github.com/max-muoto) in [#40](https://github.com/Opus10/django-pgbulk/pull/40/).

3.0.0

Breaking Changes

- The `redundant_updates` flag for `pgbulk.upsert` was renamed to `ignore_unchanged`, and the default behavior was flipped by [wesleykendall](https://github.com/wesleykendall) in [#38](https://github.com/Opus10/django-pgbulk/pull/38).

Unlike before, unchanged rows are *not* ignored by default. See [the pull request](https://github.com/Opus10/django-pgbulk/pull/38) for a guide on how to update invocations from version 2.

Features

- Support update expressions, `returning`, and `ignore_unchanged` in `pgbulk.update` by [wesleykendall](https://github.com/wesleykendall) in [#38](https://github.com/Opus10/django-pgbulk/pull/38)

`pgbulk.update`'s interface has reached feature parity with `pgbulk.upsert`, allowing for returning results, ignoring unchanged rows from being updated, and bulk updates with expressions.

- New `pgbulk.copy` function that leverages `COPY ... FROM` by [wesleykendall](https://github.com/wesleykendall) in [#39](https://github.com/Opus10/django-pgbulk/pull/39)

`pgbulk.copy` wraps Postgres's `COPY ... FROM` to insert data. Can be dramatically faster than Django's `bulk_create`.

Changes

- Django 5.1 compatibilty, dropped Django 3.2 / Postgres 12 support by [wesleykendall](https://github.com/wesleykendall) in [#37](https://github.com/Opus10/django-pgbulk/pull/37).

2.5.0

Feature

- Fix typing errors allowing for strict type-safety with Pyright. [Maxwell Muoto, 8158596]

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.