Bump tortoise-orm from 0.16.5 to 0.16.6 in /src
Bumps tortoise-orm from 0.16.5 to 0.16.6.
Release notes
Sourced from tortoise-orm's releases.
v0.16.6
This is a security fix release. We strongly recommend people upgrade.
Security fixes:
- Fixed SQL injection issue in MySQL
- Fixed SQL injection issues in MySQL when using
contains,starts_withorends_withfilters (and their case-insensitive counterparts)- Fixed malformed SQL for PostgreSQL and SQLite when using
contains,starts_withorends_withfilters (and their case-insensitive counterparts)Other changes:
Added support for partial models:
To create a partial model, one can do a
.only(<fieldnames-as-strings>)as part of the QuerySet. This will create model instances that only have those values fetched.Persisting changes on the model is allowed only when:
- All the fields you want to update is specified in
<model>.save(update_fields=[...])- You included the Model primary key in the `.only(...)``
To protect against common mistakes we ensure that errors get raised:
- If you access a field that is not specified, you will get an
AttributeError.- If you do a
<model>.save()aIncompleteInstanceErrorwill be raised as the model is, as requested, incomplete.- If you do a
<model>.save(update_fields=[...])and you didn't include the primary key in the.only(...), thenIncompleteInstanceErrorwill be raised indicating that updates can't be done without the primary key being known.- If you do a
<model>.save(update_fields=[...])and one of the fields inupdate_fieldswas not in the.only(...), thenIncompleteInstanceErroras that field is not available to be updated.
- Fixed bad SQL generation when doing a
.values()query over a Foreign Key- Added
<model>.update_from_dict({...})that will mass update values safely from a dictionary- Fixed processing URL encoded password in connection string
Changelog
Sourced from tortoise-orm's changelog.
0.16.6
.. warning::
This is a security fix release. We recommend everyone update.Security fixes ^^^^^^^^^^^^^^
- Fixed SQL injection issue in MySQL
- Fixed SQL injection issues in MySQL when using
contains,starts_withorends_withfilters (and their case-insensitive counterparts)- Fixed malformed SQL for PostgreSQL and SQLite when using
contains,starts_withorends_withfilters (and their case-insensitive counterparts)Other changes ^^^^^^^^^^^^^
Added support for partial models:
To create a partial model, one can do a
.only(<fieldnames-as-strings>)as part of the QuerySet. This will create model instances that only have those values fetched.Persisting changes on the model is allowed only when:
- All the fields you want to update is specified in
<model>.save(update_fields=[...])- You included the Model primary key in the `.only(...)``
To protect against common mistakes we ensure that errors get raised:
- If you access a field that is not specified, you will get an
AttributeError.- If you do a
<model>.save()aIncompleteInstanceErrorwill be raised as the model is, as requested, incomplete.- If you do a
<model>.save(update_fields=[...])and you didn't include the primary key in the.only(...), thenIncompleteInstanceErrorwill be raised indicating that updates can't be done without the primary key being known.- If you do a
<model>.save(update_fields=[...])and one of the fields inupdate_fieldswas not in the.only(...), thenIncompleteInstanceErroras that field is not available to be updated.
- Fixed bad SQL generation when doing a
.values()query over a Foreign Key- Added
<model>.update_from_dict({...})that will mass update values safely from a dictionary- Fixed processing URL encoded password in connection string
Commits
50bf708v0.16.6e45d414Process URL encoded password in connection string (#356)91c3640Fixed various SQL generation issues816ff00Added <model>.update_from_dict({...}) that will mass update values safely fro...8866768Fixed bad SQL generation when doing a .values() query over a Foreign Key(#351)42adca3Remove unnesecary SQL casts for string comparisons733eaf3Updated deps & fixed new darglint messages945e24aPartial model .only(...) support (#350)- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.