tortoise / tortoise/tortoise-orm
Allow setting collate on fields
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.
In SQLite, I can make a text field have a collate of NOCASE, but I don't know how to do that in Tortoise. I tried searching the docs, but there seems to be no way to make a field have a collate of NOCASE, only do case-insensitive matches on SELECT, which is not what I want.
Describe the solution you'd like
Collates to be supported.
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 file, test, or entry point is named. Start by locating how Tortoise field metadata and SQLite schema definitions are represented. Done means a model field can declare the NOCASE collation and the resulting database behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sqlite
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100