fix(deps): update dependency piccolo to ~=1.36.0 #118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/piccolo-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~=1.34.0→~=1.36.0Release Notes
piccolo-orm/piccolo (piccolo)
v1.36.0Compare Source
Advanced Constraints
In certain situations we allow the user to modify Piccolo queries using
custom SQL. This is for advanced situations not covered natively by the ORM.
In the past we used custom classes for this -
SelectRaw,OrderByRawetc.
These classes still work, but you can now just pass in a
QueryStringinstead (the building block of queries in Piccolo).
.. code-block:: python
Thanks to @AnayGarodia for adding support for custom SQL in
group_by.Other changes
Convert
Timestamptzcolumns from UTC to another timezone:.. code-block:: python
from piccolo.query.functions import AtTimeZone
class Signing(Table):
starts = Timestamptz()
CharcolumnWhen dumping fixtures using
piccolo fixtures dump, the data is now sortedby primary key, so subsequent dumps results in smaller Git diffs.
load_jsonwithprefetchYou can now use sub queries within
is_inandnot_inThanks to@sinisaos for this.
.. code-block:: python
Other improvements
When creating a fixture:
.. code-block:: bash
piccolo fixtures dump
The JSON output is now nicely formatted, which is useful because we can pipe
it straight to a file, and commit it to Git without having to manually run a
formatter on it.
.. code-block:: bash
piccolo fixtures dump > my_fixture.json
Thanks to @sinisaos for this.
Protected table names
If you want to write raw SQL in your where queries you use
WhereRaw:.. code-block:: python
You can now import it from
piccolo.queryto be consistent withSelectRawandOrderByRaw... code-block:: python
from piccolo.query import WhereRaw
v1.35.0Compare Source
ModelBuildernow generates proper email values forEmailcolumns.Fixed a bug with
output(load_json=True)when JSON column had null values.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
ce7a8c5020bace81097cfix(deps): update dependency piccolo to ~=1.35.0to fix(deps): update dependency piccolo to ~=1.36.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.