2024-04-26 22:13:03 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tortoise-orm: updated to 0.20.1
0.20.1
Added
- Add binary compression support for `UUIDField` in `MySQL`.
- Only `Model`, `Tortoise`, `BaseDBAsyncClient`, `__version__`, and \
`connections` are now exported from `tortoise`
- Add parameter `validators` to `pydantic_model_creator`.
Fixed
- Fix order of fields in `ValuesListQuery` when it has more than 10 fields.
- Fix pydantic v2 pydantic_model_creator nullable field not optional.
- Fix pydantic v2.5 unittest error.
- Fix pydantic_model_creator `exclude_readonly` parameter not working.
- Fix annotation propagation for non-filter queries.
|
2023-12-13 20:14:29 by Thomas Klausner | Files touched by this commit (1) |
Log message:
py-tortoise-orm: add missing tool
|
2023-11-23 08:58:34 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-tortoise-orm: updated to 0.20.0
0.20.0
------
Added
^^^^^
- Allow ForeignKeyField(on_delete=NO_ACTION)
- Support `pydantic` 2.0.
Fixed
^^^^^
- Fix foreign key constraint not generated on MSSQL Server.
- Fix testcase error with python3.11
Breaking Changes
^^^^^^^^^^^^^^^^
- Drop support for `pydantic` 1.x.
- Drop support for `python` 3.7.
- Param `config_class` of `pydantic_model_creator` is renamed to `model_config`.
- Attr `config_class` of `PydanticMeta` is renamed to `model_config`.
0.19
====
0.19.3
------
Added
^^^^^
- Added config_class option to pydantic model genator that allows the developer \
to customize the generated pydantic model's `Config` class.
Fixed
^^^^^
- Fastapi example test not working.
- Fix create index sql error.
- Fix dependencies resolve error.
- Fix ignoring zero value of limit.
- Fix ForeignKeyField is none when fk is integer 0.
- Fix limit ignore zero.
- Fix min/max value validators for decimal fields.
0.19.2
------
Added
^^^^^
- Added `schema` attribute to Model's Meta to specify exact schema to use with \
the model.
Fixed
^^^^^
- Mixin does not work.
- `using_db` wrong position in model shortcut methods.
- Fixed connection to `Oracle` database by adding database info to DBQ in \
connection string.
- Fixed ORA-01435 error while using `Oracle` database
- Fixed processing of `ssl` option in MySQL connection string.
- Fixed type hinting for `QuerySetSingle`.
0.19.1
------
Added
^^^^^
- Added `Postgres`/`SQLite` partial indexes support.
- Added `Microsoft SQL Server`/`Oracle` support, powered by `asyncodbc \
<https://github.com/tortoise/asyncodbc>`_, note that which is **not fully \
tested**.
- Added `optional` parameter to `pydantic_model_creator`.
- Added `using_db` parameter to `Model` shortcut methods.
Fixed
^^^^^
- `TimeField` for `MySQL` will return `datetime.timedelta` object instead of \
`datetime.time` object.
- Fix on conflict do nothing.
- Fix `_custom_generated_pk` attribute not set in `Model._init_from_db` method.
0.19.0
------
Added
^^^^^
- Added psycopg backend support.
- Added a new unified and robust connection management interface to access DB \
connections which includes support for
lazy connection creation and much more. For more details, check out this `PR \
<https://github.com/tortoise/tortoise-orm/pull/1001>`_
- Added `TimeField`.
- Added `ArrayField`.
Fixed
^^^^^
- Fix `bulk_create` doesn't work correctly with more than 1 update_fields.
- Fix `bulk_update` errors when setting null for a smallint column on postgres.
Deprecated
^^^^^^^^^^
- Existing connection management interface and related public APIs which are \
deprecated:
- `Tortoise.get_connection`
- `Tortoise.close_connections`
Changed
^^^^^^^
- Refactored `tortoise.transactions.get_connection` method to \
`tortoise.transactions._get_connection`.
Note that this method has now been marked **private to this module and is not \
part of the public API**
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
2021-12-30 14:05:42 by Adam Ciarcinski | Files touched by this commit (125) |
Log message:
Forget about Python 3.6
|
2021-10-26 12:10:08 by Nia Alarie | Files touched by this commit (417) |
Log message:
databases: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
The following distfiles could not be fetched (some may be only fetched
conditionally):
./databases/cstore/distinfo D6.data.ros.gz
./databases/cstore/distinfo cstore0.2.tar.gz
./databases/cstore/distinfo data4.tar.gz
|
2021-10-07 15:35:53 by Nia Alarie | Files touched by this commit (417) |
Log message:
databases: Remove SHA1 distfile hashes
|
2021-02-05 08:51:22 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tortoise-orm: updated to 0.16.21
0.16.21
- Fixed validating JSON before decoding.
- Add model method `update_or_create`.
- Add `batch_size` parameter for `bulk_create` method.
- Fix save with F expression and field with source_field.
|
2021-01-24 21:10:34 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-tortoise-orm: updated to 0.16.20
0.16.20
- Add model field validators.
- Allow function results in group by.
|
2021-01-03 10:57:41 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-tortoise-orm: updated to 0.16.19
0.16.19
- Replace set `TZ` environment variable to `TIMEZONE` to avoid affecting global \
timezone.
- Allow passing module objects to `models_paths` param of `Tortoise.init_models()`.
- Implement `PydanticMeta.backward_relations`.
- Allow overriding `PydanticMeta` in `PydanticModelCreator`.
- Fixed make_native typo to make_naive in timezone module
|