tortoise / tortoise/tortoise-orm
Support string queries
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.
It would be nice for Tortoise ORM to support string queries to make it easier to implement search functionality in web applications
Describe the solution you'd like
Something like ModelName.fiter("name__icontains: 'Bill' age__gt: '32'")
Basically it would be the same as the Query functionality, but as a string.
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
Start by reviewing Tortoise ORM's existing Query functionality, which the request says string queries should match. Determine how the proposed filter string syntax should represent the shown name and age conditions; done means equivalent query behavior is supported for the requested search use case.
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
- Mostly clear
- Newbie friendliness
- 25/100