Changelogs » Django-postgres-copy

PyUp Safety actively tracks 316,954 Python packages for vulnerabilities and notifies you when to upgrade.

Django-postgres-copy

2.3.5

* Added `ignore_conflicts` option to `from_csv` method.

2.3.4

* Added Python 3.7 support

2.3.3

* Added ability to write to file-like objects

2.3.2

* Added `copy_to` options for `encoding`, `escape`, `quote` and `force_quote`.

2.2.0

* To realize speed gains, added new `ConstraintsManager` to drop all indexes and constraints on the database prior to loading.

2.1.0

* Added support for Django 2.0
  * Dropped testing for Django versions prior to 1.11 and psycopg versions prior to 2.7.3, though they still likely work

2.0.3

* ``mapping`` argument to ``copy_from`` now optional with header crosswalk inferred (magnunleno)
  * Added support for optional ``delimiter`` argument to ``copy_to`` (magnunleno)
  * Added support for optional ``header`` argument to ``copy_to`` (ckirby)
  * Added support for optional ``null`` string argument to ``copy_to`` (ckirby)
  * Refactor field resolution to use Django's preferred ``model._meta.get_field`` method (ckirby)
  * More consistent use and testing of ``FieldDoesNotExist`` error (palewire)

2.0.2

* Added ``delimiter`` option to ``copy_to``.

2.0.1

* Added multi-database support to ``copy_to``.

2.0.0

* Added ``copy_to`` for export support
  * Added new manager for easier implementation
  * Added ``copy_from`` to manage to connect existing import methods to the new idiom

0.2.1

* Field retrieval now looks for matches with field.name and field.attname

0.2.0

* Added optional hooks before and after copy and insert steps
  * Removed vestigal ``copy_type`` attribute on transformations
  * Python 3.6 testing
  * Django 1.11 testing