tortoise / tortoise/tortoise-orm
Composite Relations
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 516
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 9
Description
Is your feature request related to a problem? Please describe.
I would like to be able to define relations on multiple columns. Currently I'm getting non-unique key issues as I can't use more than one column.
Describe the solution you'd like
I would like to be able to provide a list of relation specs when defining a relation instead of only a single field.
Describe alternatives you've considered
Arbitrary SQL join criteria?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the relation-definition API and the current single-column relation handling, then determine how relation specs are represented and validated. Done means relations can use multiple columns without non-unique-key failures, with coverage for the supported relation types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100