Piccolo

Latest version: v1.5.0

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

Scan your dependencies

Page 14 of 48

0.71.1

Not secure
------

Fixed a bug with ``ModelBuilder`` and nullable columns (see `PR 462 <https://github.com/piccolo-orm/piccolo/pull/462>`_).
Thanks to fiolet069 for reporting this issue.

-------------------------------------------------------------------------------

0.71.0

Not secure
------

The ``ModelBuilder`` class, which is used to generate mock data in tests, now
supports ``Array`` columns. Courtesy backwardspy.

Lots of internal code optimisations and clean up. Courtesy yezz123.

Added docs for troubleshooting common MyPy errors.

Also thanks to adriangb for helping us with our dependency issues.

-------------------------------------------------------------------------------

0.70.1

Not secure
------

Fixed a bug with auto migrations. If renaming multiple columns at once, it
could get confused. Thanks to theelderbeever for reporting this issue, and
sinisaos for helping to replicate it. See `PR 457 <https://github.com/piccolo-orm/piccolo/pull/457>`_.

-------------------------------------------------------------------------------

0.70.0

Not secure
------

We ran a profiler on the Piccolo codebase and identified some optimisations.
For example, we were calling ``self.querystring`` multiple times in a method,
rather than assigning it to a local variable.

We also ran a linter which identified when list / set / dict comprehensions
could be more efficient.

The performance is now slightly improved (especially when fetching large
numbers of rows from the database).

Example query times on a MacBook, when fetching 1000 rows from a local Postgres
database (using ``await SomeTable.select()``):

* 8 ms without a connection pool
* 2 ms with a connection pool

As you can see, having a connection pool is the main thing you can do to
improve performance.

Thanks to AliSayyah for all his work on this.

-------------------------------------------------------------------------------

0.69.5

Not secure
------

Made improvements to ``piccolo schema generate``, which automatically generates
Piccolo ``Table`` classes from an existing database.

There were situations where it would fail ungracefully when it couldn't parse
an index definition. It no longer crashes, and we print out the problematic
index definitions. See `PR 449 <https://github.com/piccolo-orm/piccolo/pull/449>`_.
Thanks to gmos for originally reporting this issue.

We also improved the error messages if schema generation fails for some reason
by letting the user know which table caused the error. Courtesy AliSayyah.

-------------------------------------------------------------------------------

0.69.4

Not secure
------

We used to raise a ``ValueError`` if a column was both ``null=False`` and
``default=None``. This has now been removed, as there are situations where
it's valid for columns to be configured that way. Thanks to gmos for
suggesting this change.

-------------------------------------------------------------------------------

Page 14 of 48

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.