Familiar asyncio ORM for python, built with relations in mind
APACHE-2.0 License
Bot releases are hidden (Show)
_create_db
parameter to RegisterTortoise. (#1676)Published by abondar 4 months ago
tortoise.contrib.fastapi.RegisterTortoise
. (#1662)tortoise.contrib.test.init_memory_sqlite
. (#1657)update_or_create
errors when field value changed. (#1584)Published by abondar 5 months ago
bulk_update
when using source_field for pk (#1633)Published by abondar 5 months ago
create_unique_index
argument to M2M field and default if it is true (#1620)Published by abondar 5 months ago
pk=True
Published by abondar 5 months ago
__eq__
method to Q
to more easily test dynamically-built queries (#1506)DatetimeField
use '__year' report 'int' object has no attribute 'utcoffset'
. (#1575)bulk_update
when using custom fields. (#1564)optional
parameter in pydantic_model_creator
does not work for pydantic v2. (#1551)get_annotations
now evaluates annotations in the default scope instead of the app namespace. (#1552)get_or_create
method. (#1404)index_name
instead of BaseSchemaGenerator._generate_index_name
to generate index name.QuerySet
to match count result to QuerySet
result. (#1607)utils.chunk
from function to return iterables lazily.pk
/index
to primary_key
/db_index
. (#1621)Model.check
method to Model._check
to avoid naming collision issues (#1559) (#1550)bulk_create
now does not return anything. (#1614)Published by abondar 6 months ago
UUIDField
in MySQL
. (#1458)Model
, Tortoise
, BaseDBAsyncClient
, __version__
, and connections
are now exported from tortoise
validators
to pydantic_model_creator
. (#1471)ValuesListQuery
when it has more than 10 fields. (#1492)exclude_readonly
parameter not working.Published by long2ice about 1 year ago
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
.Published by long2ice over 1 year ago
Config
class. (#1048)Published by long2ice over 2 years ago
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
.Published by long2ice over 2 years ago
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)Published by long2ice over 2 years ago
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
.Published by long2ice almost 3 years ago
bulk_create
error. (#1012)bulk_update
in postgres
with some type. (#968) (#1022)Published by long2ice almost 3 years ago
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.Published by long2ice about 3 years ago
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)Published by long2ice about 3 years ago
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
.Published by long2ice about 3 years ago
RawSQL
expression._make_query
. (#776)db_constraint
in field describe.Published by long2ice over 3 years ago
field_type
of fk and o2o same to which relation field type. (#443).sql()
call more than once. (#796)filter
error after annotate
with F
. (#806)select_related
for reverse relation. (#808)Published by long2ice over 3 years ago
update_or_create
. (#782)Published by long2ice over 3 years ago
update_or_create
and get_or_create
. (#721)refresh_from_db
without fields pass. (#734)update
query work with limit
and order_by
. (#748)Subquery
expression. (#756) (#9) (#337)