Tortoise-orm

Latest version: v0.20.0

Safety actively analyzes 619181 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 23

0.20

====

0.20.0

------
Added
^^^^^
- Allow ForeignKeyField(on_delete=NO_ACTION) (1393)
- Support `pydantic` 2.0. (1433)

Fixed
^^^^^
- Fix foreign key constraint not generated on MSSQL Server. (1400)
- Fix testcase error with python3.11 (1308)

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.3

------
Added
^^^^^
- Added config_class option to pydantic model genator that allows the developer to customize the generated pydantic model's `Config` class. (1048)
Fixed
^^^^^
- Fastapi example test not working. (1029)
- Fix create index sql error. (1202)
- Fix dependencies resolve error. (1246)
- Fix ignoring zero value of limit. (1270)
- Fix ForeignKeyField is none when fk is integer 0. (1274)
- Fix limit ignore zero. (1270)
- Fix min/max value validators for decimal fields. (1291)

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. (1133)
- `using_db` wrong position in model shortcut methods. (1150)
- Fixed connection to `Oracle` database by adding database info to DBQ in connection string.
- Fixed ORA-01435 error while using `Oracle` database (1155)
- Fixed processing of `ssl` option in MySQL connection string.
- Fixed type hinting for `QuerySetSingle`.

0.19.1

------
Added
^^^^^
- Added `Postgres`/`SQLite` partial indexes support. (1103)
- 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`. (770)
- Added `using_db` parameter to `Model` shortcut methods. (1109)
Fixed
^^^^^
- `TimeField` for `MySQL` will return `datetime.timedelta` object instead of `datetime.time` object.
- Fix on conflict do nothing. (1122)
- Fix `_custom_generated_pk` attribute not set in `Model._init_from_db` method. (633)

0.19

====

Page 1 of 23

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.