fix(deps): update dependency piccolo to ~=1.39.0 #131
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
cswimr/tidegear!131
Loading…
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.36.0→~=1.39.0Release Notes
piccolo-orm/piccolo (piccolo)
v1.39.0Compare Source
Identity columns
Added the
CaseandWhenfunctions, which are the SQL equivalent of anif / elif / elseblock:.. code-block:: python
Thanks to @regiscamimura for adding this.
Other changes
You can now check if an array has values in common with another array:
.. code-block:: python
Thanks to @regiscamimura for adding this.
Infinity defaults for
NumericandRealIn 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.38.0Compare Source
Case/WhenAdded the
CaseandWhenfunctions, which are the SQL equivalent of anif / elif / elseblock:Thanks to @regiscamimura for adding this.
Other changes
Arraycolumn (thanks to @sinisaos for this).db_column_name(thanks to @atkei for this).ForeignKeycolumns which reference it (thanks to @regiscamimura for this).Defaultclasses can now be used as column defaults (thanks to @Bobronium for this).v1.37.0Compare Source
ArrayOverlapYou can now check if an array has values in common with another array:
Thanks to @regiscamimura for adding this.
Infinity defaults for
NumericandRealNumeric/DecimalandRealcolumns can now have infinity (or negative infinity) as a default value:Other changes
Columnsubclass (thanks to @pavdwest for this).CASCADE, which SQLite doesn't support (thanks to @juneja-varun for this).piccolo schema generatenow detectsUUIDcolumn defaults, includinguuidv7()(thanks to @juneja-varun for this).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 CLI.
e4fae10d986a47dee169fix(deps): update dependency piccolo to ~=1.37.0to fix(deps): update dependency piccolo to ~=1.38.06a47dee169d029963f47fix(deps): update dependency piccolo to ~=1.38.0to fix(deps): update dependency piccolo to ~=1.39.0View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.