Familiar asyncio ORM for python, built with relations in mind
pydantic
2.0. (#1433)pydantic
1.x.python
3.7.config_class
of pydantic_model_creator
is renamed to model_config
.config_class
of PydanticMeta
is renamed to model_config
.Config
class. (#1048)schema
attribute to Model's Meta to specify exact schema to use with the model.using_db
wrong position in model shortcut methods. (#1150)Oracle
database by adding database info to DBQ in connection string.Oracle
database (#1155)ssl
option in MySQL connection string.QuerySetSingle
.Postgres
/SQLite
partial indexes support. (#1103)Microsoft SQL Server
/Oracle
support, powered by asyncodbc, note that which is not fully tested.optional
parameter to pydantic_model_creator
. (#770)using_db
parameter to Model
shortcut methods. (#1109)TimeField
for MySQL
will return datetime.timedelta
object instead of datetime.time
object._custom_generated_pk
attribute not set in Model._init_from_db
method. (#633)TimeField
. (#1054).ArrayField
for postgres
.bulk_create
doesn't work correctly with more than 1 update_fields. (#1046)bulk_update
errors when setting null for a smallint column on postgres. (#1086)Tortoise.get_connection
Tortoise.close_connections
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
Rand
/Random
function in contrib. (#944)ON CONFLICT
support in INSERT
statements. (#428)bulk_update
error when pk is uuid. (#986)Function
, Aggregate
from functions.py
to expressions.py
. (#943)Q
from query_utils.py
to expressions.py
.python-rapidjson
to orjson
.asynctest
and use unittest.IsolatedAsyncioTestCase
. (#416)py37
support in tests.green
and nose2
test runner.Model.raw
method to support the raw sql query.QuerySet.bulk_update
method. (#924)QuerySet.in_bulk
method.MaxValueValidator
and MinValueValidator
(#927)QuerySet
subclass being lost when _clone
is run on the instance..values
with source_field
. (#844)contrib.blacksheep
exception handlers, use builtin json response. (#914)exists
parameter in their template (#928)IntEnumField
. (#889).values()
and .values_list()
awaited return more consistent. (#899)select_related
behaviour for forward relation. (#825)QuerySet
and Manager
. (#864)Concat
function for MySQL/PostgreSQL. (#873)db_client
logger to tortoise.db_client
.indexes
to Model.describe
.RawSQL
expression._make_query
. (#776)db_constraint
in field describe.