Releases: tortoise/tortoise-orm
Releases · tortoise/tortoise-orm
0.19.2
Added
- Added
schemaattribute to Model's Meta to specify exact schema to use with the model.
Fixed
- Mixin does not work. (#1133)
using_dbwrong position in model shortcut methods. (#1150)- Fixed connection to
Oracledatabase by adding database info to DBQ in connection string. - Fixed ORA-01435 error while using
Oracledatabase (#1155) - Fixed processing of
ssloption in MySQL connection string. - Fixed type hinting for
QuerySetSingle.
0.19.1
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.
- Added
TimeField. (#1054). - Added
ArrayFieldforpostgres.
Fixed
- Fix
bulk_createdoesn't work correctly with more than 1 update_fields. (#1046) - Fix
bulk_updateerrors when setting null for a smallint column on postgres. (#1086)
Deprecated
- Existing connection management interface and related public APIs which are deprecated:
Tortoise.get_connectionTortoise.close_connections
Changed
- Refactored
tortoise.transactions.get_connectionmethod totortoise.transactions._get_connection.
Note that this method has now been marked private to this module and is not part of the public API
0.18.1
0.18.0
Added
- Add Case-When support. (#943)
- Add
Rand/Randomfunction in contrib. (#944) - Add
ON CONFLICTsupport inINSERTstatements. (#428)
Fixed
Changed
- Move
Function,Aggregatefromfunctions.pytoexpressions.py. (#943) - Move
Qfromquery_utils.pytoexpressions.py. - Replace
python-rapidjsontoorjson.
Removed
- Remove
asynctestand useunittest.IsolatedAsyncioTestCase. (#416) - Remove
py37support in tests. - Remove
greenandnose2test runner.
0.17.8
Added
- Add
Model.rawmethod to support the raw sql query. - Add
QuerySet.bulk_updatemethod. (#924) - Add
QuerySet.in_bulkmethod. - Add
MaxValueValidatorandMinValueValidator(#927)
Fixed
- Fix
QuerySetsubclass being lost when_cloneis run on the instance. - Fix bug in
.valueswithsource_field. (#844) - Fix
contrib.blacksheepexception handlers, use builtin json response. (#914) - Fix Indexes defined in Meta class do not make use of
existsparameter in their template (#928)
Changed
0.17.7
- Fix
select_relatedbehaviour for forward relation. (#825) - Fix bug in nested
QuerySetandManager. (#864) - Add
Concatfunction for MySQL/PostgreSQL. (#873) - Patch for use_index/force_index mutable problem when making query. (#888)
- Lift annotation field's priority in make query. (#883)
- Make use/force index available in select type Query. (#893)
- Fix all logging to use Tortoise's logger instead of root logger. (#879)
- Rename
db_clientlogger totortoise.db_client. - Add
indexestoModel.describe.