Comments (1)
It definitely should work that way, but as much as I see sample SQL queries for such actions, this is implemented by subqueries. Even though it shouldn't be hard to implement it right away I would prefer to leave it as post-1.0 feature and bundle up it's implementation with subqueries.
At the moment it's quite easy to do similar actions just by two separate queries.
from tortoise-orm.
Related Issues (20)
- Group by for many to many table problem
- blacksheep example unittest error
- Unittest failed after upgrade pydantic to v2.5
- timezone bug
- How to translate MySQL code with two primary keys to Tortoise?
- How tortoise implements the same functionality as SerializerMethodField in DRF?
- How can I add a virtual property to Model? and it can be set in controller.
- How to handle the same table self-join subquery
- Decimal field represented in scientific notation when using pydantic_model_creator
- Error on schema generation with several relations
- Optional parameter in pydantic_model_creator does not work after upgrading to pydantic v2 HOT 1
- [BUG:PEP563] tortoise.contrib.pydantic.utils.get_annotations uses incorrect global namespace
- How can i print sql with register_tortoise() in fastapi?
- Default timeout unknown HOT 1
- If datetimefield is not timezone-aware get_or_create fails UNIQUE constraint. HOT 1
- Connection closes if save method was triggered in pytest.
- Can't use check field name HOT 1
- Tortoise ORM tutorial missing context? HOT 4
- Tortoise orm F expression
- Docs request: if `pk` will be unique HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tortoise-orm.