Auto-generated alias on tables with auto-complete
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 485
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to be able to configure the auto-complete so that, when you pick a table, it also generate an alias for you:
```sql
SELECT *
FROM cl[auto-complete]
```
Selecting `client_orders` table and the alias `co` is generated for use, by extracting the first letter of each words in the table's name:
```sql
SELECT *
FROM client_orders co
```
Contributor guide
No contributing guide indexed for this repository
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 examining the existing auto-complete implementation and how it handles table selections; the issue provides the SQL example using client_orders and the generated co alias as the expected behavior. Determine where this behavior is configured and how completion results are tested. Done means selecting a table can produce the requested alias without breaking existing SQL completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100