Skip to content
This repository was archived by the owner on Sep 6, 2020. It is now read-only.

Conversation

@dependabot-preview
Copy link
Contributor

Bumps tortoise-orm from 0.15.1 to 0.15.7.

Release notes

Sourced from tortoise-orm's releases.

v0.15.7

  • QuerySet.Update() now returns the count of the no of rows affected. Note, that
  • QuerySet.Delete() now returns the count of the no of rows deleted.
  • Note that internal API of db_connection.execute_query() now returns rows_affected, results. (This is informational only)
  • Added get_or_none(...) as syntactic sugar for filter(...).first()

v0.15.6

  • Added BinaryField for storing binary objects (bytes).
  • Changed TextField to use LONGTEXT for MySQL to allow for larger than 64KB of text.
  • De-duplicate index if specified on both index=true and as part of indexes
  • Primary Keyed TextField is marked as deprecated. We can't guarnatee that it will be properly indexed or unique in all cases.
  • One can now disable the backwards relation for FK/O2O relations by passing related_name=False
  • One can now pass a PK value to a generated field, and Tortoise ORM will use that as the PK as expected. This allows one to have a model that has a autonumber PK, but setting it explicitly if required.

v0.15.5

  • Refactored Fields:

    Fields have been refactored, for better maintenance. There should be no change for most users.

    • More accurate auto-completion.
    • Fields now contain their own SQL schema by dialect, which significantly simplifies adding field types.
    • describe_model() now returns the DB type, and dialect overrides.
  • JSONField will now automatically use python-rapidjson as an accelerator if it is available.
  • DecimalField and aggregations on it, now behaves much more like expected on SQLite (#256)
  • Check whether charset name is valid for the MySQL connection (#261)
  • Default DB driver parameters are now applied consistently, if you use the URI schema or manual.

v0.15.4

  • Don't generate a schema if there is no models (#254)
  • Emit a RuntimeWarning when a module has no models to import (#254)
  • Allow passing in a custom SSL context (#255)

0.15.3

  • Added OneToOneField implementation:

    OneToOneField describes a one to one relation between two models. It can be set from the primary side only, but resolved from both sides in the same way.

    describe_model(...) now also reports OneToOne relations in both directions.

    Usage example:

     event: fields.OneToOneRelation[Event] = fields.OneToOneField(
         "models.Event", on_delete=fields.CASCADE, related_name="address"
... (truncated)
Changelog

Sourced from tortoise-orm's changelog.

0.15.7

  • QuerySet.Update() now returns the count of the no of rows affected. Note, that
  • QuerySet.Delete() now returns the count of the no of rows deleted.
  • Note that internal API of db_connection.execute_query() now returns rows_affected, results. (This is informational only)
  • Added get_or_none(...) as syntactic sugar for filter(...).first()

0.15.6

  • Added BinaryField for storing binary objects (bytes).
  • Changed TextField to use LONGTEXT for MySQL to allow for larger than 64KB of text.
  • De-duplicate index if specified on both index=true and as part of indexes
  • Primary Keyed TextField is marked as deprecated. We can't guarnatee that it will be properly indexed or unique in all cases.
  • One can now disable the backwards relation for FK/O2O relations by passing related_name=False
  • One can now pass a PK value to a generated field, and Tortoise ORM will use that as the PK as expected. This allows one to have a model that has a autonumber PK, but setting it explicitly if required.

0.15.5

  • Refactored Fields:

    Fields have been refactored, for better maintenance. There should be no change for most users.

    • More accurate auto-completion.
    • Fields now contain their own SQL schema by dialect, which significantly simplifies adding field types.
    • describe_model() now returns the DB type, and dialect overrides.
  • JSONField will now automatically use python-rapidjson as an accelerator if it is available.

  • DecimalField and aggregations on it, now behaves much more like expected on SQLite (#256)

  • Check whether charset name is valid for the MySQL connection (#261)

  • Default DB driver parameters are now applied consistently, if you use the URI schema or manual.

0.15.4

  • Don't generate a schema if there is no models (#254)
  • Emit a RuntimeWarning when a module has no models to import (#254)
  • Allow passing in a custom SSL context (#255)

0.15.3

  • Added OneToOneField implementation:

    OneToOneField describes a one to one relation between two models. It can be set from the primary side only, but resolved from both sides in the same way.

    describe_model(...) now also reports OneToOne relations in both directions.

... (truncated)
Commits
  • 38c4bb9 v0.15.7
  • 3ac1dae Added get_or_none(...) as syntactic sugar for filter(...).first()
  • ef586b0 QuerySet.Update() & QuerySey.Delete() now returns the no of affected rows (#1...
  • 8b6211a v0.15.6
  • 9d498f3 One can now pass a PK value to a generated field, and Tortoise ORM will use t...
  • b279485 One can now disable the backwards relation for FK/O2O relations by passing re...
  • 22ab365 De-duplicate index (#264), deprecated PK TextField (#246)
  • b8e9b03 Added tests that replicate the get_or_create race condition (#140)
  • 3cea528 Changed TextField to use LONGTEXT for MySQL to allow for larger than 64KB of ...
  • 65310ed Added BinaryField for storing bytes
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will 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 labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jan 1, 2020
@dependabot-preview
Copy link
Contributor Author

Superseded by #66.

@dependabot-preview dependabot-preview bot deleted the dependabot/pip/dev/tortoise-orm-0.15.7 branch February 1, 2020 05:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant