sqldelight / sqldelight/sql-psi

Support DELETE FROM t USING

Open
#299 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.