sqldelight / sqldelight/sql-psi
Support DELETE FROM t USING
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 104
- Forks
- 35
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 14
Description
Dialect
MySQL, PostgreSQL
Failing SQL
DELETE FROM t USING a WHERE a.id = t.id;
Description
Unfortunately, this is not a valid ANSI SQL statement, but many vendors accept this:
MySQL: https://dev.mysql.com/doc/refman/5.7/en/delete.html
PostgreSQL: https://www.postgresql.org/docs/current/sql-delete.html
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 with the SQL parsing support for DELETE statements and compare the requested syntax with the MySQL and PostgreSQL documentation linked in the issue. No source file or test is named, so locate the relevant parser tests before implementing support for DELETE FROM t USING a WHERE a.id = t.id; done means this statement parses for the stated dialects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mysql, postgresql, sql
- Domain
- database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100