Piccolo

Latest version: v1.12.0

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

Scan your dependencies

Page 2 of 50

1.6.0

-----

Added support for a bunch of Postgres functions, like ``Upper``, ``Lower``,
``Length``, and ``Ltrim``. They can be used in ``select`` queries:

.. code-block:: python

from piccolo.query.functions.string import Upper
>>> await Band.select(Upper(Band.name, alias="name"))
[{"name": "PYTHONISTAS"}]

And also in ``where`` clauses:

.. code-block:: python

>>> await Band.select().where(Upper(Band.manager.name) == 'GUIDO')
[{"name": "Pythonistas"}]

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

1.5.2

-----

Added an ``Album`` table to the playground, along with some other
improvements.

Fixed a bug with the ``output(load_json=True)`` clause, when used on joined
tables.

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

1.5.1

-----

Fixed a bug with the CLI when reversing migrations (thanks to metakot for
reporting this).

Updated the ASGI templates (thanks to tarsil for adding Lilya).

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

1.5.0

-----

On the add row and edit row forms, the save button is now temporarily disabled
after being pressed (until the API call finishes). This is to prevent a user
from accidentally clicking the button multiple times. Thanks to sinisaos for
helping with this.

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

1.4.2

-----

Improved how ``ModelBuilder`` handles recursive foreign keys.

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

1.4.1

-----

Fixed an edge case with auto migrations.

If starting from a table like this, with a custom primary key column:

.. code-block:: python

class MyTable(Table):
id = UUID(primary_key=True)

When a foreign key is added to the table which references itself:

.. code-block:: python

class MyTable(Table):
id = UUID(primary_key=True)
fk = ForeignKey("self")

The auto migrations could fail in some situations.

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

Page 2 of 50

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.